Class: RailsAttrEnum::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_attr_enum/entry.rb

Overview

Enum entry class

Instance Attribute Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



5
6
7
# File 'lib/rails_attr_enum/entry.rb', line 5

def key
  @key
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



5
6
7
# File 'lib/rails_attr_enum/entry.rb', line 5

def label
  @label
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



5
6
7
# File 'lib/rails_attr_enum/entry.rb', line 5

def value
  @value
end