Method: Tessera::Model::Base#initialize

Defined in:
lib/tessera/model/base.rb

#initialize(response) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
11
# File 'lib/tessera/model/base.rb', line 6

def initialize(response)
  @response = response
  @code = @response.code
  parse_errors if parsed_body
  parse_attributes if parsed_body
end