Class: ROM::ModelBuilder
- Inherits:
-
Object
- Object
- ROM::ModelBuilder
- Defined in:
- core/lib/rom/model_builder.rb
Overview
Model builders can be used to build model classes for mappers
This is used when you define a mapper and setup a model using :name option.
Direct Known Subclasses
Defined Under Namespace
Classes: PORO
Instance Attribute Summary collapse
-
#const_name ⇒ Object
readonly
Returns the value of attribute const_name.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Instance Attribute Details
#const_name ⇒ Object (readonly)
Returns the value of attribute const_name.
22 23 24 |
# File 'core/lib/rom/model_builder.rb', line 22 def const_name @const_name end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
22 23 24 |
# File 'core/lib/rom/model_builder.rb', line 22 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'core/lib/rom/model_builder.rb', line 20 def name @name end |
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
22 23 24 |
# File 'core/lib/rom/model_builder.rb', line 22 def namespace @namespace end |