Class: Dryer::Clients::GeneratedClients::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/dryer/clients/generated_clients/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errorsObject (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_responseObject (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

#bodyObject



14
15
16
# File 'lib/dryer/clients/generated_clients/response.rb', line 14

def body
  raw_response.body
end

#codeObject



10
11
12
# File 'lib/dryer/clients/generated_clients/response.rb', line 10

def code
  raw_response.code
end