Class: PUBG::Match::Participants

Inherits:
Object
  • Object
show all
Defined in:
lib/pubg/match/participants.rb,
lib/pubg/match/participants/attributes.rb

Defined Under Namespace

Classes: Attributes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Participants

Returns a new instance of Participants.



8
9
10
11
12
13
14
# File 'lib/pubg/match/participants.rb', line 8

def initialize(args)
  @type = args["type"]
  @id = args["id"]
  @attributes = Attributes.new(args["attributes"])
  @actor = args["attributes"]["actor"]
  @shardId = args["attributes"]["shardId"]
end

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor.



6
7
8
# File 'lib/pubg/match/participants.rb', line 6

def actor
  @actor
end

#attributesObject (readonly)

Returns the value of attribute attributes.



6
7
8
# File 'lib/pubg/match/participants.rb', line 6

def attributes
  @attributes
end

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/pubg/match/participants.rb', line 6

def id
  @id
end

#sharIdObject (readonly)

Returns the value of attribute sharId.



6
7
8
# File 'lib/pubg/match/participants.rb', line 6

def sharId
  @sharId
end

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/pubg/match/participants.rb', line 6

def type
  @type
end