Class: Rfm::Metadata::ValueListItem

Inherits:
String show all
Defined in:
lib/rfm/metadata/value_list_item.rb

Overview

The ValueListItem object represents an item in a Filemaker value list. ValueListItem is subclassed from String, so you can use it just like a string. It does have three additional methods to help separate Filemaker value vs display items.

Getting values vs display items:

  • #value the value list item value

  • #display is the value list item display. It could be the same as value, or it could be the “second field”, if that option is checked in Filemaker

  • #value_list_name is the name of the parent value list, if any

Instance Attribute Summary collapse

Method Summary

Methods inherited from String

#title_case

Instance Attribute Details

#displayObject (readonly)

TODO: re-instate saving of value_list_name.



19
20
21
# File 'lib/rfm/metadata/value_list_item.rb', line 19

def display
  @display
end

#valueObject (readonly)

TODO: re-instate saving of value_list_name.



19
20
21
# File 'lib/rfm/metadata/value_list_item.rb', line 19

def value
  @value
end

#value_list_nameObject (readonly)

TODO: re-instate saving of value_list_name.



19
20
21
# File 'lib/rfm/metadata/value_list_item.rb', line 19

def value_list_name
  @value_list_name
end