Class: DataMapper::Shim::ClassMethods::Property
- Inherits:
-
Object
- Object
- DataMapper::Shim::ClassMethods::Property
- Defined in:
- lib/data_mapper/shim.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ Property
constructor
A new instance of Property.
Constructor Details
#initialize(name, type) ⇒ Property
Returns a new instance of Property.
132 133 134 135 |
# File 'lib/data_mapper/shim.rb', line 132 def initialize(name, type) @name = name @type = type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
130 131 132 |
# File 'lib/data_mapper/shim.rb', line 130 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
130 131 132 |
# File 'lib/data_mapper/shim.rb', line 130 def type @type end |