Class: Easyfire::ModelSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/easyfire/easyfire_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeModelSpec

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

#associationsObject

Returns the value of attribute associations.



3
4
5
# File 'lib/easyfire/easyfire_model.rb', line 3

def associations
  @associations
end

#attributesObject

Returns the value of attribute attributes.



3
4
5
# File 'lib/easyfire/easyfire_model.rb', line 3

def attributes
  @attributes
end

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/easyfire/easyfire_model.rb', line 3

def description
  @description
end

#model_nameObject

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_typeObject

Returns the value of attribute model_type.



3
4
5
# File 'lib/easyfire/easyfire_model.rb', line 3

def model_type
  @model_type
end

#parentsObject

Returns the value of attribute parents.



3
4
5
# File 'lib/easyfire/easyfire_model.rb', line 3

def parents
  @parents
end