documentation
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user