| Class | Lafcadio::EnumField |
| In: |
lafcadio/objectField.rb
|
| Parent: | StringField |
EnumField represents an enumerated field that can only be set to one of a set range of string values. To set the enumeration in the class definition, pass in an Array of values as enums.
class IceCream < Lafcadio::DomainObject
enum 'flavor', { 'enums' => %w( Vanilla Chocolate Lychee ) }
end
| enums | [R] |