Class: Spikard::ResponseSnapshot
- Inherits:
-
Object
- Object
- Spikard::ResponseSnapshot
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#body ⇒ String
readonly
Returns the value of attribute body.
-
#headers ⇒ Hash[String, String]
readonly
Returns the value of attribute headers.
-
#status ⇒ Integer
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #header ⇒ String?
-
#initialize ⇒ ResponseSnapshot
constructor
A new instance of ResponseSnapshot.
- #text ⇒ String
Constructor Details
#initialize ⇒ ResponseSnapshot
Returns a new instance of ResponseSnapshot.
389 |
# File 'sig/types.rbs', line 389
def initialize: (status: Integer, headers: Hash[String, String], body: String) -> void
|
Instance Attribute Details
#body ⇒ String (readonly)
Returns the value of attribute body.
387 388 389 |
# File 'sig/types.rbs', line 387 def body @body end |
#headers ⇒ Hash[String, String] (readonly)
Returns the value of attribute headers.
386 387 388 |
# File 'sig/types.rbs', line 386 def headers @headers end |
#status ⇒ Integer (readonly)
Returns the value of attribute status.
385 386 387 |
# File 'sig/types.rbs', line 385 def status @status end |
Instance Method Details
#header ⇒ String?
391 |
# File 'sig/types.rbs', line 391
def header: (String name) -> String?
|
#text ⇒ String
390 |
# File 'sig/types.rbs', line 390
def text: () -> String
|