Class: FastBound::Account

Inherits:
Base
  • Object
show all
Includes:
API
Defined in:
lib/fastbound-ruby/account.rb

Constant Summary collapse

ENDPOINTS =
{
  fetch: "account".freeze,
}

Constants included from API

FastBound::API::FILE_UPLOAD_ATTRS, FastBound::API::ROOT_URL, FastBound::API::USER_AGENT

Instance Method Summary collapse

Methods included from API

#delete_request, #get_request, #post_file_request, #post_request, #put_request

Constructor Details

#initialize(client) ⇒ Account

Returns a new instance of Account.



12
13
14
# File 'lib/fastbound-ruby/account.rb', line 12

def initialize(client)
  @client = client
end

Instance Method Details

#fetchObject



16
17
18
19
20
# File 'lib/fastbound-ruby/account.rb', line 16

def fetch
  endpoint = ENDPOINTS[:fetch]

  get_request(@client, endpoint)
end