Class: Cacchern::SortableMember

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/cacchern/sortable_member.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (readonly)

Returns the value of attribute key.



7
8
9
# File 'lib/cacchern/sortable_member.rb', line 7

def key
  @key
end

#valueObject (readonly)

Returns the value of attribute value.



7
8
9
# File 'lib/cacchern/sortable_member.rb', line 7

def value
  @value
end