Class: RBattlenet::Hearthstone::Card
- Inherits:
-
Endpoints::Base
- Object
- Endpoints::Base
- RBattlenet::Hearthstone::Card
- Defined in:
- lib/rbattlenet/endpoints/hearthstone/card.rb
Constant Summary
Constants inherited from Endpoints::Base
Endpoints::Base::SUPPORTED_FIELDS
Class Method Summary collapse
Methods inherited from Endpoints::Base
Class Method Details
.path(params) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/rbattlenet/endpoints/hearthstone/card.rb', line 4 def self.path(params) if (params.is_a?(String) && slug = params) || (slug = params[:slug]) RBattlenet.uri("hearthstone/cards/#{slug}?") else RBattlenet.uri("hearthstone/cards?#{URI.encode_www_form(params)}&") end end |