Class: FetchAPI::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/fetchapi/account.rb

Class Method Summary collapse

Methods inherited from Base

basic_auth, find, #initialize

Constructor Details

This class inherits a constructor from FetchAPI::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FetchAPI::Base

Class Method Details

.detailsObject

Retrieves information about the Account



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

def self.details
  execute(:get, "/account")
end

.new_tokenObject

Generates a new API token. Subsequent API calls using the existing token will be refused.



14
15
16
# File 'lib/fetchapi/account.rb', line 14

def self.new_token
  execute(:get, "/new_token")
end