Class: Lol::Summoner

Inherits:
Model
  • Object
show all
Defined in:
lib/lol/summoner.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#raw

Method Summary

Methods inherited from Model

#initialize, #inspect

Constructor Details

This class inherits a constructor from Lol::Model

Instance Attribute Details

#idString

Returns:

  • (String)


5
6
7
# File 'lib/lol/summoner.rb', line 5

def id
  @id
end

#nameString

Returns Summoner Name.

Returns:

  • (String)

    Summoner Name



9
10
11
# File 'lib/lol/summoner.rb', line 9

def name
  @name
end

#profile_icon_idString

Returns Id of the profile icon. No way to get the icon out for now.

Returns:

  • (String)

    Id of the profile icon. No way to get the icon out for now



13
14
15
# File 'lib/lol/summoner.rb', line 13

def profile_icon_id
  @profile_icon_id
end

#revision_dateTime

Returns Last date of summoner profile revision.

Returns:

  • (Time)

    Last date of summoner profile revision



17
18
19
# File 'lib/lol/summoner.rb', line 17

def revision_date
  @revision_date
end

#revision_date_strString

Returns Human readable string representing date of summoner profile revision.

Returns:

  • (String)

    Human readable string representing date of summoner profile revision



21
22
23
# File 'lib/lol/summoner.rb', line 21

def revision_date_str
  @revision_date_str
end

#summoner_levelNumeric

Returns 1-30.

Returns:

  • (Numeric)

    1-30



25
26
27
# File 'lib/lol/summoner.rb', line 25

def summoner_level
  @summoner_level
end