Class: Rfm::Metadata::ValueListItem
- Inherits:
-
String
- Object
- String
- Rfm::Metadata::ValueListItem
- Defined in:
- lib/rfm/metadata/value_list_item.rb
Overview
The ValueListItem object represents a item in a Filemaker value list.
Attributes
-
value the value list item value
-
display is the value list item display string
-
it could be the same as value, or it could be the “second field” # * * :scrollable - an editable field with scroll bar
-
-
if that option is checked in Filemaker
-
-
value_list_name is the name of the parent value list, if any
Instance Attribute Summary collapse
-
#display ⇒ Object
readonly
Returns the value of attribute display.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#value_list_name ⇒ Object
readonly
Returns the value of attribute value_list_name.
Instance Method Summary collapse
-
#initialize(value, display, value_list_name) ⇒ ValueListItem
constructor
A new instance of ValueListItem.
Constructor Details
#initialize(value, display, value_list_name) ⇒ ValueListItem
Returns a new instance of ValueListItem.
16 17 18 19 20 21 |
# File 'lib/rfm/metadata/value_list_item.rb', line 16 def initialize(value, display, value_list_name) @value_list_name = value_list_name @value = value @display = display self.replace value end |
Instance Attribute Details
#display ⇒ Object (readonly)
Returns the value of attribute display.
23 24 25 |
# File 'lib/rfm/metadata/value_list_item.rb', line 23 def display @display end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
23 24 25 |
# File 'lib/rfm/metadata/value_list_item.rb', line 23 def value @value end |
#value_list_name ⇒ Object (readonly)
Returns the value of attribute value_list_name.
23 24 25 |
# File 'lib/rfm/metadata/value_list_item.rb', line 23 def value_list_name @value_list_name end |