Class: Altertable::Adapters::Response
- Inherits:
-
Struct
- Object
- Struct
- Altertable::Adapters::Response
- Defined in:
- lib/altertable/adapters.rb,
sig/altertable/adapters.rbs
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
7 |
# File 'sig/altertable/adapters.rbs', line 7
def initialize: (Integer status, String body) -> void
|
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
3 4 5 |
# File 'lib/altertable/adapters.rb', line 3 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
3 4 5 |
# File 'lib/altertable/adapters.rb', line 3 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status
3 4 5 |
# File 'lib/altertable/adapters.rb', line 3 def status @status end |