Class: Traktr::Account

Inherits:
Endpoint show all
Defined in:
lib/traktr/account.rb

Instance Method Summary collapse

Methods inherited from Endpoint

#initialize

Constructor Details

This class inherits a constructor from Traktr::Endpoint

Instance Method Details

#settingsObject



3
4
5
6
# File 'lib/traktr/account.rb', line 3

def settings
  response = self.class.post("/" + File.join("settings", @client.api_key), body: @auth.to_json, headers: { 'Content-Type' => 'application/json'})
  parse_response(response)
end

#testObject



8
9
10
11
# File 'lib/traktr/account.rb', line 8

def test
  response = self.class.post("/" + File.join("test", @client.api_key), body: @auth.to_json, headers: { 'Content-Type' => 'application/json'})
  parse_response(response)
end