Class: Tessera::Model::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tessera/model/base.rb

Direct Known Subclasses

Session, Ticket

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/tessera/model/base.rb', line 4

def code
  @code
end

#errorsObject

Returns the value of attribute errors.



4
5
6
# File 'lib/tessera/model/base.rb', line 4

def errors
  @errors
end

#responseObject

Returns the value of attribute response.



4
5
6
# File 'lib/tessera/model/base.rb', line 4

def response
  @response
end