Sha256: a47e7596b41af20eedcad763301ce2bb3bfa2cf2890b0d4532027f952400e623
Contents?: true
Size: 610 Bytes
Versions: 5
Compression:
Stored size: 610 Bytes
Contents
module ShelbyArena class Client module Fund def list_funds options = {} options[:api_sig] = generate_api_sig(fund_path, options) res = get(fund_path, options.sort) Response::Fund.format(res.dig('FundListResult', 'Funds', 'Fund')) end def find_fund(id, options = {}) options[:api_sig] = generate_api_sig(fund_path(id), options) res = get(fund_path(id), options.sort) Response::Fund.format(res.dig('Fund')) end private def fund_path(id = nil) id ? "fund/#{id}" : 'fund/list' end end end end
Version data entries
5 entries across 5 versions & 1 rubygems