Class: Ethel::Field
- Inherits:
-
Object
- Object
- Ethel::Field
- Defined in:
- lib/ethel/field.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, options) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name, options) ⇒ Field
Returns a new instance of Field.
5 6 7 8 |
# File 'lib/ethel/field.rb', line 5 def initialize(name, ) @name = name @type = [:type] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ethel/field.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/ethel/field.rb', line 3 def type @type end |