Class: Cacchern::SortableMember
- Inherits:
-
Object
- Object
- Cacchern::SortableMember
- Includes:
- ActiveModel::Model
- Defined in:
- lib/cacchern/sortable_member.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ SortableMember
constructor
A new instance of SortableMember.
Constructor Details
#initialize(key, value) ⇒ SortableMember
Returns a new instance of SortableMember.
12 13 14 15 16 |
# File 'lib/cacchern/sortable_member.rb', line 12 def initialize(key, value) @key = key @value = value run_callbacks :initialize end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'lib/cacchern/sortable_member.rb', line 7 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/cacchern/sortable_member.rb', line 7 def value @value end |