Class: Brawlhalla::API::PlayerSearch
- Inherits:
-
Object
- Object
- Brawlhalla::API::PlayerSearch
- Defined in:
- lib/brawlhalla/api/player_search.rb
Instance Attribute Summary collapse
-
#brawlhalla_id ⇒ Object
Returns the value of attribute brawlhalla_id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ PlayerSearch
constructor
A new instance of PlayerSearch.
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_id ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/brawlhalla/api/player_search.rb', line 6 def name @name end |