Module: FidorApi::Client::DSL::CoreData

Defined in:
lib/fidor_api/client/dsl/core_data.rb

Instance Method Summary collapse

Instance Method Details

#accounts(options = {}) ⇒ Object



13
14
15
# File 'lib/fidor_api/client/dsl/core_data.rb', line 13

def accounts(options = {})
  fetch(:collection, Model::Account, 'accounts', options)
end

#customers(options = {}) ⇒ Object



9
10
11
# File 'lib/fidor_api/client/dsl/core_data.rb', line 9

def customers(options = {})
  fetch(:collection, Model::Customer, 'customers', options)
end

#user(options = {}) ⇒ Object



5
6
7
# File 'lib/fidor_api/client/dsl/core_data.rb', line 5

def user(options = {})
  fetch(:single, Model::User, 'users/current', options)
end