Class: Spikard::ProblemDetails
- Inherits:
-
Object
- Object
- Spikard::ProblemDetails
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#detail ⇒ String
readonly
Returns the value of attribute detail.
-
#extensions ⇒ Hash[String, json_value]
readonly
Returns the value of attribute extensions.
-
#instance ⇒ String
readonly
Returns the value of attribute instance.
-
#status ⇒ Integer
readonly
Returns the value of attribute status.
-
#title ⇒ String
readonly
Returns the value of attribute title.
-
#type_uri ⇒ String
readonly
Returns the value of attribute type_uri.
Class Method Summary collapse
- .bad_request ⇒ ProblemDetails
- .internal_server_error ⇒ ProblemDetails
- .method_not_allowed ⇒ ProblemDetails
- .not_found ⇒ ProblemDetails
Instance Method Summary collapse
-
#initialize ⇒ ProblemDetails
constructor
A new instance of ProblemDetails.
- #to_json ⇒ String
- #to_json_pretty ⇒ String
- #with_detail ⇒ ProblemDetails
- #with_instance ⇒ ProblemDetails
Constructor Details
#initialize ⇒ ProblemDetails
Returns a new instance of ProblemDetails.
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
#detail ⇒ String (readonly)
Returns the value of attribute detail.
290 291 292 |
# File 'sig/types.rbs', line 290 def detail @detail end |
#extensions ⇒ Hash[String, json_value] (readonly)
Returns the value of attribute extensions.
292 293 294 |
# File 'sig/types.rbs', line 292 def extensions @extensions end |
#instance ⇒ String (readonly)
Returns the value of attribute instance.
291 292 293 |
# File 'sig/types.rbs', line 291 def instance @instance end |
#status ⇒ Integer (readonly)
Returns the value of attribute status.
289 290 291 |
# File 'sig/types.rbs', line 289 def status @status end |
#title ⇒ String (readonly)
Returns the value of attribute title.
288 289 290 |
# File 'sig/types.rbs', line 288 def title @title end |
#type_uri ⇒ String (readonly)
Returns the value of attribute type_uri.
287 288 289 |
# File 'sig/types.rbs', line 287 def type_uri @type_uri end |
Class Method Details
.bad_request ⇒ ProblemDetails
302 |
# File 'sig/types.rbs', line 302
def self.bad_request: (String detail) -> ProblemDetails
|
.internal_server_error ⇒ ProblemDetails
301 |
# File 'sig/types.rbs', line 301
def self.internal_server_error: (String detail) -> ProblemDetails
|
.method_not_allowed ⇒ ProblemDetails
300 |
# File 'sig/types.rbs', line 300
def self.method_not_allowed: (String detail) -> ProblemDetails
|
.not_found ⇒ ProblemDetails
299 |
# File 'sig/types.rbs', line 299
def self.not_found: (String detail) -> ProblemDetails
|
Instance Method Details
#to_json ⇒ String
297 |
# File 'sig/types.rbs', line 297
def to_json: () -> String
|
#to_json_pretty ⇒ String
298 |
# File 'sig/types.rbs', line 298
def to_json_pretty: () -> String
|
#with_detail ⇒ ProblemDetails
295 |
# File 'sig/types.rbs', line 295
def with_detail: (String detail) -> ProblemDetails
|
#with_instance ⇒ ProblemDetails
296 |
# File 'sig/types.rbs', line 296
def with_instance: (String instance) -> ProblemDetails
|