Class: LolApi::ParticipantIdentity

Inherits:
Object
  • Object
show all
Defined in:
lib/lol_api/types/dtos/participant_identity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_identity) ⇒ ParticipantIdentity

Returns a new instance of ParticipantIdentity.



7
8
9
# File 'lib/lol_api/types/dtos/participant_identity.rb', line 7

def initialize(raw_identity)
	@raw_identity = raw_identity
end

Instance Attribute Details

#raw_identityObject (readonly)

Returns the value of attribute raw_identity.



5
6
7
# File 'lib/lol_api/types/dtos/participant_identity.rb', line 5

def raw_identity
  @raw_identity
end

Instance Method Details

#participant_idObject



11
12
13
# File 'lib/lol_api/types/dtos/participant_identity.rb', line 11

def participant_id
	raw_identity['participantId']
end

#playerObject



15
16
17
# File 'lib/lol_api/types/dtos/participant_identity.rb', line 15

def player
	Player.new(raw_identity['player']) if raw_identity['player']
end