Class: Easyfire::ModelSpec
- Inherits:
-
Object
- Object
- Easyfire::ModelSpec
- Defined in:
- lib/easyfire/easyfire_model.rb
Instance Attribute Summary collapse
-
#associations ⇒ Object
Returns the value of attribute associations.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#description ⇒ Object
Returns the value of attribute description.
-
#model_name ⇒ Object
Returns the value of attribute model_name.
-
#model_type ⇒ Object
Returns the value of attribute model_type.
-
#parents ⇒ Object
Returns the value of attribute parents.
Instance Method Summary collapse
-
#initialize ⇒ ModelSpec
constructor
A new instance of ModelSpec.
Constructor Details
#initialize ⇒ ModelSpec
Returns a new instance of ModelSpec.
4 5 6 7 8 9 10 11 |
# File 'lib/easyfire/easyfire_model.rb', line 4 def initialize() @model_name = "" @description = "" @model_type = nil @attributes = {} @associations = {} @parents = [] end |
Instance Attribute Details
#associations ⇒ Object
Returns the value of attribute associations.
3 4 5 |
# File 'lib/easyfire/easyfire_model.rb', line 3 def associations @associations end |
#attributes ⇒ Object
Returns the value of attribute attributes.
3 4 5 |
# File 'lib/easyfire/easyfire_model.rb', line 3 def attributes @attributes end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/easyfire/easyfire_model.rb', line 3 def description @description end |
#model_name ⇒ Object
Returns the value of attribute model_name.
3 4 5 |
# File 'lib/easyfire/easyfire_model.rb', line 3 def model_name @model_name end |
#model_type ⇒ Object
Returns the value of attribute model_type.
3 4 5 |
# File 'lib/easyfire/easyfire_model.rb', line 3 def model_type @model_type end |
#parents ⇒ Object
Returns the value of attribute parents.
3 4 5 |
# File 'lib/easyfire/easyfire_model.rb', line 3 def parents @parents end |