Module: Nis::Endpoint::Account::Harvests

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

Instance Method Summary collapse

Instance Method Details

#account_harvests(address:, hash: nil) ⇒ Array <Nis::Struct::HarvestInfo>


7
8
9
10
11
12
13
14
# File 'lib/nis/endpoint/account/harvests.rb', line 7

def (address:, hash: nil)
  request!(:get, '/account/harvests',
    address: address,
    hash: hash
  ) do |res|
    res[:data].map { |hvst| Nis::Struct::HarvestInfo.build(hvst) }
  end
end