documentation

This commit is contained in:
danijoo
2013-12-15 01:56:26 +01:00
parent 6600841e8a
commit 382ec39185
2 changed files with 25 additions and 4 deletions

View File

@@ -1,9 +1,14 @@
# Class to represent a summoner
# @attr [String] name name
# @attr [Long] id summoner id (used for other calls)
# @attr [Integer] profileIconId profile icon id of the summoner
# @attr [long] revisionDate timestamp of latest data change
# @attr [Integer] level summoner level
class Summoner
attr_accessor :name, :id, :profileIconId, :revisionDate, :level
# @param data [Hash] json hash representation of the summoner
def initialize(data)
@name = data['name']
@id = data['id']