Class: Teams::Response
- Inherits:
-
Struct
- Object
- Struct
- Teams::Response
- Defined in:
- lib/teams/response.rb
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(status: 200, body: nil, headers: {}) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(status: 200, body: nil, headers: {}) ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/teams/response.rb', line 5 def initialize(status: 200, body: nil, headers: {}) super(status:, body:, headers:) end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
4 5 6 |
# File 'lib/teams/response.rb', line 4 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers
4 5 6 |
# File 'lib/teams/response.rb', line 4 def headers @headers end |
#status ⇒ Object
Returns the value of attribute status
4 5 6 |
# File 'lib/teams/response.rb', line 4 def status @status end |