Class: Rumbly::Model::ActiveRecord::Application
- Inherits:
-
Rumbly::Model::Application
- Object
- Rumbly::Model::Application
- Rumbly::Model::ActiveRecord::Application
- Defined in:
- lib/rumbly/model/active_record/application.rb
Overview
This class is an ActiveRecord
-specific implementation of the abstract Rumbly::Model::Application
class for representing model classes and relationships within the currently loaded environment.
Constant Summary
Constants inherited from Rumbly::Model::Application
Rumbly::Model::Application::ATTRIBUTES
Instance Attribute Summary collapse
-
#klasses ⇒ Object
readonly
Returns an array of all
Rumbly::Model::ActiveRecord::Klass
objects for the current loadedActiveRecord
environment. -
#name ⇒ Object
readonly
Returns the name of the current
ActiveRecord
application. -
#relationships ⇒ Object
readonly
Returns an array of
Rumbly::Model::ActiveRecord::Relationship
objects for the currently loadedActiveRecord
environment.
Method Summary
Methods inherited from Rumbly::Model::Application
Methods included from Rumbly::Model::Abstract
Instance Attribute Details
#klasses ⇒ Object (readonly)
Returns an array of all Rumbly::Model::ActiveRecord::Klass
objects for the current loaded ActiveRecord
environment.
23 24 25 |
# File 'lib/rumbly/model/active_record/application.rb', line 23 def klasses @klasses end |
#name ⇒ Object (readonly)
Returns the name of the current ActiveRecord
application.
17 18 19 |
# File 'lib/rumbly/model/active_record/application.rb', line 17 def name @name end |
#relationships ⇒ Object (readonly)
Returns an array of Rumbly::Model::ActiveRecord::Relationship
objects for the currently loaded ActiveRecord
environment.
34 35 36 |
# File 'lib/rumbly/model/active_record/application.rb', line 34 def relationships @relationships end |