Class: RiotKit::Models::Riot::Account
- Inherits:
-
Object
- Object
- RiotKit::Models::Riot::Account
- Defined in:
- lib/riot_kit/models/riot/account.rb
Instance Attribute Summary collapse
-
#game_name ⇒ Object
readonly
Returns the value of attribute game_name.
-
#puuid ⇒ Object
readonly
Returns the value of attribute puuid.
-
#tag_line ⇒ Object
readonly
Returns the value of attribute tag_line.
Instance Method Summary collapse
- #display_riot_id ⇒ Object
-
#initialize(puuid:, game_name:, tag_line:) ⇒ Account
constructor
A new instance of Account.
- #to_h ⇒ Object
Constructor Details
#initialize(puuid:, game_name:, tag_line:) ⇒ Account
Returns a new instance of Account.
9 10 11 12 13 |
# File 'lib/riot_kit/models/riot/account.rb', line 9 def initialize(puuid:, game_name:, tag_line:) @puuid = puuid @game_name = game_name @tag_line = tag_line end |
Instance Attribute Details
#game_name ⇒ Object (readonly)
Returns the value of attribute game_name.
7 8 9 |
# File 'lib/riot_kit/models/riot/account.rb', line 7 def game_name @game_name end |
#puuid ⇒ Object (readonly)
Returns the value of attribute puuid.
7 8 9 |
# File 'lib/riot_kit/models/riot/account.rb', line 7 def puuid @puuid end |
#tag_line ⇒ Object (readonly)
Returns the value of attribute tag_line.
7 8 9 |
# File 'lib/riot_kit/models/riot/account.rb', line 7 def tag_line @tag_line end |
Instance Method Details
#display_riot_id ⇒ Object
19 20 21 |
# File 'lib/riot_kit/models/riot/account.rb', line 19 def display_riot_id "#{game_name}##{tag_line}" end |
#to_h ⇒ Object
15 16 17 |
# File 'lib/riot_kit/models/riot/account.rb', line 15 def to_h { puuid: puuid, game_name: game_name, tag_line: tag_line } end |