module Nis::Endpoint::Account::Harvests
Public Instance Methods
account_harvests(address:, hash: nil)
click to toggle source
@param [String] address @param [String] hash @return [Array <Nis::Struct::HarvestInfo>] @see nemproject.github.io/#requesting-harvest-info-data-for-an-account
# File lib/nis/endpoint/account/harvests.rb, line 7 def account_harvests(address:, hash: nil) request!(:get, '/account/harvests', address: address, hash: hash ) do |res| res[:data].map { |hvst| Nis::Struct::HarvestInfo.build(hvst) } end end