Class: Supersaas::BaseModel

Inherits:
Object
  • Object
show all
Defined in:
lib/supersaas-api-client/models/base_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ BaseModel

Returns a new instance of BaseModel.



8
9
10
11
# File 'lib/supersaas-api-client/models/base_model.rb', line 8

def initialize(attributes)
  @attributes = attributes
  assign_attributes(attributes)
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



6
7
8
# File 'lib/supersaas-api-client/models/base_model.rb', line 6

def attributes
  @attributes
end

#errorsObject

Returns the value of attribute errors.



5
6
7
# File 'lib/supersaas-api-client/models/base_model.rb', line 5

def errors
  @errors
end