Class: Brawlhalla::API::PlayerSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/brawlhalla/api/player_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PlayerSearch

Returns a new instance of PlayerSearch.



8
9
10
11
# File 'lib/brawlhalla/api/player_search.rb', line 8

def initialize(json)
  @name = json[:name]
  @brawlhalla_id = json[:brawlhalla_id]
end

Instance Attribute Details

#brawlhalla_idObject

Returns the value of attribute brawlhalla_id.



6
7
8
# File 'lib/brawlhalla/api/player_search.rb', line 6

def brawlhalla_id
  @brawlhalla_id
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/brawlhalla/api/player_search.rb', line 6

def name
  @name
end