Class: Bitso::UserTransactions
Instance Attribute Summary
Attributes inherited from Collection
#access_token, #model, #module, #name, #path
Instance Method Summary
collapse
Methods inherited from Collection
#initialize
Instance Method Details
#all(options = {}) ⇒ Object
3
4
5
6
7
8
|
# File 'lib/bitso/transactions.rb', line 3
def all(options = {})
options[:timedelta] = "3600" unless options[:timedelta]
Bitso::Helper.parse_objects! Bitso::Net::post("/user_transactions", options).to_str, self.model
end
|
#create(options = {}) ⇒ Object
17
18
|
# File 'lib/bitso/transactions.rb', line 17
def create(options = {})
end
|
#find(order_id) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/bitso/transactions.rb', line 10
def find(order_id)
all = self.all
index = all.index {|order| order.id.to_i == order_id}
return all[index] if index
end
|
#update(options = {}) ⇒ Object
20
21
|
# File 'lib/bitso/transactions.rb', line 20
def update(options={})
end
|