Class: Spikard::ProblemDetails

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProblemDetails

Returns a new instance of ProblemDetails.

Parameters:

  • type_uri: (String)
  • title: (String)
  • status: (Integer)
  • detail: (String)
  • instance: (String)
  • extensions: (Hash[String, json_value])


294
# File 'sig/types.rbs', line 294

def initialize: (type_uri: String, title: String, status: Integer, ?detail: String, ?instance: String, extensions: Hash[String, json_value]) -> void

Instance Attribute Details

#detailString (readonly)

Returns the value of attribute detail.

Returns:

  • (String)


290
291
292
# File 'sig/types.rbs', line 290

def detail
  @detail
end

#extensionsHash[String, json_value] (readonly)

Returns the value of attribute extensions.

Returns:

  • (Hash[String, json_value])


292
293
294
# File 'sig/types.rbs', line 292

def extensions
  @extensions
end

#instanceString (readonly)

Returns the value of attribute instance.

Returns:

  • (String)


291
292
293
# File 'sig/types.rbs', line 291

def instance
  @instance
end

#statusInteger (readonly)

Returns the value of attribute status.

Returns:

  • (Integer)


289
290
291
# File 'sig/types.rbs', line 289

def status
  @status
end

#titleString (readonly)

Returns the value of attribute title.

Returns:

  • (String)


288
289
290
# File 'sig/types.rbs', line 288

def title
  @title
end

#type_uriString (readonly)

Returns the value of attribute type_uri.

Returns:

  • (String)


287
288
289
# File 'sig/types.rbs', line 287

def type_uri
  @type_uri
end

Class Method Details

.bad_requestProblemDetails

Parameters:

  • detail (String)

Returns:



302
# File 'sig/types.rbs', line 302

def self.bad_request: (String detail) -> ProblemDetails

.internal_server_errorProblemDetails

Parameters:

  • detail (String)

Returns:



301
# File 'sig/types.rbs', line 301

def self.internal_server_error: (String detail) -> ProblemDetails

.method_not_allowedProblemDetails

Parameters:

  • detail (String)

Returns:



300
# File 'sig/types.rbs', line 300

def self.method_not_allowed: (String detail) -> ProblemDetails

.not_foundProblemDetails

Parameters:

  • detail (String)

Returns:



299
# File 'sig/types.rbs', line 299

def self.not_found: (String detail) -> ProblemDetails

Instance Method Details

#to_jsonString

Returns:

  • (String)


297
# File 'sig/types.rbs', line 297

def to_json: () -> String

#to_json_prettyString

Returns:

  • (String)


298
# File 'sig/types.rbs', line 298

def to_json_pretty: () -> String

#with_detailProblemDetails

Parameters:

  • detail (String)

Returns:



295
# File 'sig/types.rbs', line 295

def with_detail: (String detail) -> ProblemDetails

#with_instanceProblemDetails

Parameters:

Returns:



296
# File 'sig/types.rbs', line 296

def with_instance: (String instance) -> ProblemDetails