Class: IActionable::Objects::Leaderboard

Inherits:
IActionableObject show all
Defined in:
lib/iactionable/objects/leaderboard.rb

Instance Attribute Summary collapse

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

#keyObject

Returns the value of attribute key.



4
5
6
# File 'lib/iactionable/objects/leaderboard.rb', line 4

def key
  @key
end

#nameObject

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_hashObject



7
8
9
10
11
12
# File 'lib/iactionable/objects/leaderboard.rb', line 7

def to_hash
  {
    "Key" => @key,
    "Name" => @name
  }
end