class ONEAccess::API::V3_0::References

Public Class Methods

contributors(contributor_names: nil, limit: 20, offset: 0) click to toggle source
# File lib/oneaccess/api/v3_0/references.rb, line 15
def contributors(contributor_names: nil, limit: 20, offset: 0)
  params = {
    contributor_names: contributor_names,
    limit:             limit,
    offset:            offset,
  }.reject { |_, v| v.nil? }

  resp = send_get('contributors', params)

  Response::ContributorsResponse.from_json(resp.body)
end
contributors_list() click to toggle source
# File lib/oneaccess/api/v3_0/references.rb, line 27
def contributors_list
  Request::ContributorsRequestHandler.new(url: api_url('contributors'))
end
investors(investor_names: nil, limit: 20, offset: 0) click to toggle source
# File lib/oneaccess/api/v3_0/references.rb, line 31
def investors(investor_names: nil, limit: 20, offset: 0)
  params = {
    investor_names: investor_names,
    limit:          limit,
    offset:         offset,
  }.reject { |_, v| v.nil? }

  resp = send_get('investors', params)

  Response::InvestorsResponse.from_json(resp.body)
end
investors_list() click to toggle source
# File lib/oneaccess/api/v3_0/references.rb, line 43
def investors_list
  Request::InvestorsRequestHandler.new(url: api_url('investors'))
end