Class: Dryer::Clients::GeneratedClients::Response
- Inherits:
-
Object
- Object
- Dryer::Clients::GeneratedClients::Response
- Defined in:
- lib/dryer/clients/generated_clients/response.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#raw_response ⇒ Object
readonly
Returns the value of attribute raw_response.
Instance Method Summary collapse
- #body ⇒ Object
- #code ⇒ Object
-
#initialize(raw_response:, errors:) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(raw_response:, errors:) ⇒ Response
Returns a new instance of Response.
5 6 7 8 |
# File 'lib/dryer/clients/generated_clients/response.rb', line 5 def initialize(raw_response:, errors:) @raw_response = raw_response @errors = errors end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
18 19 20 |
# File 'lib/dryer/clients/generated_clients/response.rb', line 18 def errors @errors end |
#raw_response ⇒ Object (readonly)
Returns the value of attribute raw_response.
18 19 20 |
# File 'lib/dryer/clients/generated_clients/response.rb', line 18 def raw_response @raw_response end |
Instance Method Details
#body ⇒ Object
14 15 16 |
# File 'lib/dryer/clients/generated_clients/response.rb', line 14 def body raw_response.body end |
#code ⇒ Object
10 11 12 |
# File 'lib/dryer/clients/generated_clients/response.rb', line 10 def code raw_response.code end |