class Tarpon::Request::Subscriber::Offering

Public Class Methods

new(subscriber_path:) click to toggle source
# File lib/tarpon/request/subscriber/offering.rb, line 9
def initialize(subscriber_path:)
  @subscriber_path = subscriber_path
end

Public Instance Methods

list(platform) click to toggle source
# File lib/tarpon/request/subscriber/offering.rb, line 13
def list(platform)
  response = perform(method: :get, path: path.to_s, headers: { 'x-platform': platform.to_s }, key: :public)
  return response unless response.success?

  Tarpon::Entity::Offerings.new(response.raw)
end

Private Instance Methods

path() click to toggle source
# File lib/tarpon/request/subscriber/offering.rb, line 22
def path
  "#{@subscriber_path}/offerings"
end