Class: Masterman::Base

Inherits:
Object
  • Object
show all
Includes:
Associations, Attributes, ClassAccessor, Mountable, Reflection
Defined in:
lib/masterman/base.rb

Direct Known Subclasses

Loader::Csv

Instance Attribute Summary collapse

Attributes included from Mountable

#class_loader, #primary_key

Instance Method Summary collapse

Methods included from ClassAccessor

#[], #attributes, #mount_class_attributes!

Methods included from Mountable

#class_mount, #loader, #mount

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

#attr_reader, #cattr_reader

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_classObject (readonly)

Returns the value of attribute model_class.



9
10
11
# File 'lib/masterman/base.rb', line 9

def model_class
  @model_class
end