Class: Twirbet::Transport::Response
- Inherits:
-
Object
- Object
- Twirbet::Transport::Response
- Extended by:
- T::Sig
- Defined in:
- lib/twirbet/transport.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, headers, body) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status, headers, body) ⇒ Response
Returns a new instance of Response.
42 43 44 45 46 |
# File 'lib/twirbet/transport.rb', line 42 def initialize(status, headers, body) @status = status @headers = headers @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
39 40 41 |
# File 'lib/twirbet/transport.rb', line 39 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
36 37 38 |
# File 'lib/twirbet/transport.rb', line 36 def headers @headers end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
33 34 35 |
# File 'lib/twirbet/transport.rb', line 33 def status @status end |