Class: SimpleRecord::Base::Attribute
- Inherits:
-
Object
- Object
- SimpleRecord::Base::Attribute
- Defined in:
- lib/simple_record.rb
Overview
Holds information about an attribute
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(type) ⇒ Attribute
Returns a new instance of Attribute.
179 180 181 |
# File 'lib/simple_record.rb', line 179 def initialize(type) @type = type end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
177 178 179 |
# File 'lib/simple_record.rb', line 177 def end |
#type ⇒ Object
Returns the value of attribute type.
177 178 179 |
# File 'lib/simple_record.rb', line 177 def type @type end |