Class: Cadooz::Immutable::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/cadooz/models/immutable/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, raw_response) ⇒ Response

Returns a new instance of Response.



4
5
6
7
8
9
# File 'lib/cadooz/models/immutable/response.rb', line 4

def initialize(object, raw_response)
  @object = object
  @raw = raw_response

  self.freeze
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



2
3
4
# File 'lib/cadooz/models/immutable/response.rb', line 2

def object
  @object
end

#rawObject (readonly)

Returns the value of attribute raw.



2
3
4
# File 'lib/cadooz/models/immutable/response.rb', line 2

def raw
  @raw
end