Class: Bhf::Data::AbstractField
- Inherits:
-
Object
- Object
- Bhf::Data::AbstractField
- Defined in:
- lib/bhf/data.rb
Instance Attribute Summary collapse
-
#display_type ⇒ Object
readonly
Returns the value of attribute display_type.
-
#form_type ⇒ Object
readonly
Returns the value of attribute form_type.
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#macro ⇒ Object
readonly
Returns the value of attribute macro.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#overwrite_display_type ⇒ Object
readonly
Returns the value of attribute overwrite_display_type.
-
#overwrite_type ⇒ Object
readonly
Returns the value of attribute overwrite_type.
Instance Method Summary collapse
-
#initialize(props) ⇒ AbstractField
constructor
A new instance of AbstractField.
Constructor Details
#initialize(props) ⇒ AbstractField
Returns a new instance of AbstractField.
6 7 8 9 10 11 12 13 |
# File 'lib/bhf/data.rb', line 6 def initialize(props) @name = props[:name] @form_type = props[:form_type] @display_type = props[:display_type] @overwrite_display_type = props[:display_type] @info = props[:info] @macro = :column end |
Instance Attribute Details
#display_type ⇒ Object (readonly)
Returns the value of attribute display_type.
4 5 6 |
# File 'lib/bhf/data.rb', line 4 def display_type @display_type end |
#form_type ⇒ Object (readonly)
Returns the value of attribute form_type.
4 5 6 |
# File 'lib/bhf/data.rb', line 4 def form_type @form_type end |
#info ⇒ Object (readonly)
Returns the value of attribute info.
4 5 6 |
# File 'lib/bhf/data.rb', line 4 def info @info end |
#macro ⇒ Object (readonly)
Returns the value of attribute macro.
4 5 6 |
# File 'lib/bhf/data.rb', line 4 def macro @macro end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/bhf/data.rb', line 4 def name @name end |
#overwrite_display_type ⇒ Object (readonly)
Returns the value of attribute overwrite_display_type.
4 5 6 |
# File 'lib/bhf/data.rb', line 4 def overwrite_display_type @overwrite_display_type end |
#overwrite_type ⇒ Object (readonly)
Returns the value of attribute overwrite_type.
4 5 6 |
# File 'lib/bhf/data.rb', line 4 def overwrite_type @overwrite_type end |