Class: OmiseGO::Transaction
- Inherits:
-
Base
- Object
- Base
- OmiseGO::Transaction
show all
- Defined in:
- lib/omisego/transaction.rb
Instance Attribute Summary
Attributes inherited from Base
#client, #original_payload
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
attributes, #error?, global_client, #initialize, #inspect, request, #success?
Constructor Details
This class inherits a constructor from OmiseGO::Base
Class Method Details
.all(params: {}, client: nil) ⇒ Object
7
8
9
|
# File 'lib/omisego/transaction.rb', line 7
def all(params: {}, client: nil)
request(client).send('transaction.all', {}, params: params).data
end
|
.all_for_user(provider_user_id:, address: nil, params: {}, client: nil) ⇒ Object
11
12
13
14
15
16
17
18
|
# File 'lib/omisego/transaction.rb', line 11
def all_for_user(provider_user_id:, address: nil, params: {}, client: nil)
body = {
provider_user_id: provider_user_id,
address: address
}
request(client).send('user.list_transactions', body, params: params).data
end
|
Instance Method Details
#exchange ⇒ Object
29
30
31
|
# File 'lib/omisego/transaction.rb', line 29
def exchange
@_exchange ||= Exchange.new(@exchange)
end
|
#from ⇒ Object
21
22
23
|
# File 'lib/omisego/transaction.rb', line 21
def from
@_from ||= TransactionSource.new(@from)
end
|
#to ⇒ Object
25
26
27
|
# File 'lib/omisego/transaction.rb', line 25
def to
@_to ||= TransactionSource.new(@to)
end
|