Module: Nis::Endpoint::Account::Transfers

Included in:
Nis
Defined in:
lib/nis/endpoint/account/transfers.rb

Instance Method Summary collapse

Instance Method Details

#account_transfers_all(address:, hash: nil, id: nil) ⇒ Array <Nis::Struct::TransactionMetaDataPair>


38
39
40
41
42
43
44
45
46
# File 'lib/nis/endpoint/account/transfers.rb', line 38

def (address:, hash: nil, id: nil)
  request!(:get, '/account/transfers/all',
    address: address,
    hash: hash,
    id: id
  ) do |res|
    res[:data].map { |tmdp| Nis::Struct::TransactionMetaDataPair.build(tmdp) }
  end
end

#account_transfers_incoming(address:, hash: nil, id: nil) ⇒ Array <Nis::Struct::TransactionMetaDataPair>


8
9
10
11
12
13
14
15
16
# File 'lib/nis/endpoint/account/transfers.rb', line 8

def (address:, hash: nil, id: nil)
  request!(:get, '/account/transfers/incoming',
    address: address,
    hash: hash,
    id: id
  ) do |res|
    res[:data].map { |tmdp| Nis::Struct::TransactionMetaDataPair.build(tmdp) }
  end
end

#account_transfers_outgoing(address:, hash: nil, id: nil) ⇒ Array <Nis::Struct::TransactionMetaDataPair>


23
24
25
26
27
28
29
30
31
# File 'lib/nis/endpoint/account/transfers.rb', line 23

def (address:, hash: nil, id: nil)
  request!(:get, '/account/transfers/outgoing',
    address: address,
    hash: hash,
    id: id
  ) do |res|
    res[:data].map { |tmdp| Nis::Struct::TransactionMetaDataPair.build(tmdp) }
  end
end