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.
314 |
# File 'sig/types.rbs', line 314
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.
310 311 312 |
# File 'sig/types.rbs', line 310 def detail @detail end |
#extensions ⇒ Hash[String, json_value] (readonly)
Returns the value of attribute extensions.
312 313 314 |
# File 'sig/types.rbs', line 312 def extensions @extensions end |
#instance ⇒ String (readonly)
Returns the value of attribute instance.
311 312 313 |
# File 'sig/types.rbs', line 311 def instance @instance end |
#status ⇒ Integer (readonly)
Returns the value of attribute status.
309 310 311 |
# File 'sig/types.rbs', line 309 def status @status end |
#title ⇒ String (readonly)
Returns the value of attribute title.
308 309 310 |
# File 'sig/types.rbs', line 308 def title @title end |
#type_uri ⇒ String (readonly)
Returns the value of attribute type_uri.
307 308 309 |
# File 'sig/types.rbs', line 307 def type_uri @type_uri end |
Class Method Details
.bad_request ⇒ ProblemDetails
322 |
# File 'sig/types.rbs', line 322
def self.bad_request: (String detail) -> ProblemDetails
|
.internal_server_error ⇒ ProblemDetails
321 |
# File 'sig/types.rbs', line 321
def self.internal_server_error: (String detail) -> ProblemDetails
|
.method_not_allowed ⇒ ProblemDetails
320 |
# File 'sig/types.rbs', line 320
def self.method_not_allowed: (String detail) -> ProblemDetails
|
.not_found ⇒ ProblemDetails
319 |
# File 'sig/types.rbs', line 319
def self.not_found: (String detail) -> ProblemDetails
|
Instance Method Details
#to_json ⇒ String
317 |
# File 'sig/types.rbs', line 317
def to_json: () -> String
|
#to_json_pretty ⇒ String
318 |
# File 'sig/types.rbs', line 318
def to_json_pretty: () -> String
|
#with_detail ⇒ ProblemDetails
315 |
# File 'sig/types.rbs', line 315
def with_detail: (String detail) -> ProblemDetails
|
#with_instance ⇒ ProblemDetails
316 |
# File 'sig/types.rbs', line 316
def with_instance: (String instance) -> ProblemDetails
|