Class: Zype::PlayerClient
- Defined in:
- lib/zype/client/player_client.rb
Constant Summary
Constants inherited from Client
Instance Attribute Summary
Attributes inherited from Client
Instance Method Summary collapse
-
#initialize(auth_method = 'api_key') ⇒ PlayerClient
constructor
A new instance of PlayerClient.
Methods inherited from Client
#delete, #execute, #get, #post, #put
Constructor Details
#initialize(auth_method = 'api_key') ⇒ PlayerClient
Returns a new instance of PlayerClient.
3 4 5 6 |
# File 'lib/zype/client/player_client.rb', line 3 def initialize(auth_method = 'api_key') @headers = { 'Content-Type' => 'application/json' }.merge(authentication(auth_method)) self.class.base_uri Zype.configuration.player_host end |