Class: Zype::PlayerClient

Inherits:
Client
  • Object
show all
Defined in:
lib/zype/client/player_client.rb

Constant Summary

Constants inherited from Client

Client::ERROR_TYPES

Instance Attribute Summary

Attributes inherited from Client

#headers

Instance Method Summary collapse

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