Class: Rfm::Metadata::ValueListItem

Inherits:
String
  • Object
show all
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

Instance Method Summary collapse

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

#displayObject (readonly)

Returns the value of attribute display.



23
24
25
# File 'lib/rfm/metadata/value_list_item.rb', line 23

def display
  @display
end

#valueObject (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_nameObject (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