Class: Bhf::Data::Column
- Inherits:
-
Object
- Object
- Bhf::Data::Column
- Defined in:
- lib/bhf/data.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(field) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(field) ⇒ Column
Returns a new instance of Column.
119 120 121 122 |
# File 'lib/bhf/data.rb', line 119 def initialize(field) @name = field.name @field = field end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
117 118 119 |
# File 'lib/bhf/data.rb', line 117 def field @field end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
117 118 119 |
# File 'lib/bhf/data.rb', line 117 def name @name end |