Class: IActionable::Objects::Leaderboard
- Inherits:
-
IActionableObject
- Object
- IActionableObject
- IActionable::Objects::Leaderboard
- Defined in:
- lib/iactionable/objects/leaderboard.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from IActionableObject
#initialize, timestamp_regexp, timestamp_to_seconds
Constructor Details
This class inherits a constructor from IActionable::Objects::IActionableObject
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/iactionable/objects/leaderboard.rb', line 4 def key @key end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/iactionable/objects/leaderboard.rb', line 5 def name @name end |
Instance Method Details
#to_hash ⇒ Object
7 8 9 10 11 12 |
# File 'lib/iactionable/objects/leaderboard.rb', line 7 def to_hash { "Key" => @key, "Name" => @name } end |