Class: Upwork::Api::Routers::Reports::Finance::Accounts
- Inherits:
-
Object
- Object
- Upwork::Api::Routers::Reports::Finance::Accounts
- Defined in:
- lib/upwork/api/routers/reports/finance/accounts.rb
Overview
Generate Financial Reports for Accounts
Constant Summary collapse
- ENTRY_POINT =
'gds'
Instance Method Summary collapse
-
#get_owned(freelancer_reference, params) ⇒ Object
Generate Financial Reports for an owned Account.
-
#get_specific(entity_reference, params) ⇒ Object
Generate Financial Reports for a Specific Account.
-
#initialize(client) ⇒ Accounts
constructor
Init.
Constructor Details
#initialize(client) ⇒ Accounts
Init
Arguments:
client: (Client)
27 28 29 30 |
# File 'lib/upwork/api/routers/reports/finance/accounts.rb', line 27 def initialize(client) @client = client @client.epoint = ENTRY_POINT end |
Instance Method Details
#get_owned(freelancer_reference, params) ⇒ Object
Generate Financial Reports for an owned Account
Arguments:
freelancer_reference: (String)
params: (Hash)
37 38 39 40 |
# File 'lib/upwork/api/routers/reports/finance/accounts.rb', line 37 def get_owned(freelancer_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/financial_account_owner/' + freelancer_reference, params end |
#get_specific(entity_reference, params) ⇒ Object
Generate Financial Reports for a Specific Account
Arguments:
entity_reference: (String)
params: (Hash)
47 48 49 50 |
# File 'lib/upwork/api/routers/reports/finance/accounts.rb', line 47 def get_specific(entity_reference, params) $LOG.i "running " + __method__.to_s @client.get '/finreports/v2/financial_accounts/' + entity_reference, params end |