Class: ActiverecordAttribute
- Inherits:
-
BaseAttribute
- Object
- BaseAttribute
- ActiverecordAttribute
- Defined in:
- lib/libisi/attribute/activerecord.rb
Overview
Copyright © 2007-2010 Logintas AG Switzerland
This file is part of Libisi.
Libisi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Libisi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Libisi. If not, see <www.gnu.org/licenses/>.
Instance Attribute Summary
Attributes inherited from BaseAttribute
Instance Method Summary collapse
-
#initialize(concept, column, options = {}) ⇒ ActiverecordAttribute
constructor
A new instance of ActiverecordAttribute.
- #name ⇒ Object
- #type ⇒ Object
- #unit ⇒ Object
Constructor Details
#initialize(concept, column, options = {}) ⇒ ActiverecordAttribute
Returns a new instance of ActiverecordAttribute.
22 23 24 25 |
# File 'lib/libisi/attribute/activerecord.rb', line 22 def initialize(concept, column, = {}) @activerecord_column = column super(concept, column.name, ) end |
Instance Method Details
#name ⇒ Object
20 |
# File 'lib/libisi/attribute/activerecord.rb', line 20 def name; @activerecord_column.name; end |
#type ⇒ Object
27 28 29 |
# File 'lib/libisi/attribute/activerecord.rb', line 27 def type @activerecord_column.type end |
#unit ⇒ Object
30 31 32 |
# File 'lib/libisi/attribute/activerecord.rb', line 30 def unit return nil end |