Class: Masterman::Base
- Inherits:
-
Object
- Object
- Masterman::Base
- Includes:
- Associations, Attributes, ClassAccessor, Mountable, Reflection
- Defined in:
- lib/masterman/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#model_class ⇒ Object
readonly
Returns the value of attribute model_class.
Attributes included from Mountable
Instance Method Summary collapse
-
#initialize(model_class) ⇒ Base
constructor
A new instance of Base.
Methods included from ClassAccessor
#[], #attributes, #mount_class_attributes!
Methods included from Mountable
Methods included from Reflection
#_reflections, #_reflections=, add_reflection, build, #reflections
Methods included from Associations
#association, #belongs_to, #has_many, #has_one
Methods included from Attributes
Constructor Details
#initialize(model_class) ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/masterman/base.rb', line 11 def initialize(model_class) @model_class = model_class end |
Instance Attribute Details
#model_class ⇒ Object (readonly)
Returns the value of attribute model_class.
9 10 11 |
# File 'lib/masterman/base.rb', line 9 def model_class @model_class end |