Class: Supersaas::BaseModel
- Inherits:
-
Object
- Object
- Supersaas::BaseModel
- Defined in:
- lib/supersaas-api-client/models/base_model.rb
Direct Known Subclasses
Appointment, FieldList, Form, Group, Promotion, Resource, Schedule, Slot, SuperForm, User
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#errors ⇒ Object
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ BaseModel
constructor
A new instance of BaseModel.
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
#attributes ⇒ Object (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 |
#errors ⇒ Object
Returns the value of attribute errors.
5 6 7 |
# File 'lib/supersaas-api-client/models/base_model.rb', line 5 def errors @errors end |