Class: Bankin::Transaction
Constant Summary
collapse
- RESOURCE_PATH =
'/v2/transactions'
Class Method Summary
collapse
Methods inherited from Resource
auth_delegate, collections, #collections, #fields, fields, has_collection, has_fields, has_resource, #initialize, resources, #resources
Class Method Details
.get(token, id) ⇒ Object
20
21
22
23
|
# File 'lib/bankin/resources/transaction.rb', line 20
def self.get(token, id)
response = Bankin.api_call(:get, "#{RESOURCE_PATH}/#{id}", {}, token)
new(response, token)
end
|
.list(token, options = {}) ⇒ Object
10
11
12
13
|
# File 'lib/bankin/resources/transaction.rb', line 10
def self.list(token, options = {})
response = Bankin.api_call(:get, RESOURCE_PATH, options, token)
Collection.new(response, self, token)
end
|
.list_updated(token, options = {}) ⇒ Object
15
16
17
18
|
# File 'lib/bankin/resources/transaction.rb', line 15
def self.list_updated(token, options = {})
response = Bankin.api_call(:get, "#{RESOURCE_PATH}/updated", options, token)
Collection.new(response, self, token)
end
|