Sha256: 076a5f16f64e41d98ab0b553258465d45eb385357379164feea35ee4629f5ac4

Contents?: true

Size: 337 Bytes

Versions: 5

Compression:

Stored size: 337 Bytes

Contents

module OMCMS
  class Offering < Resource
    def initialize(client, response, host)
      super
    end

    def all
      perform_run self, request_path()
    end

    def get(id)
      perform_run self, request_path(id)
    end

    private

    def request_path(key = nil)
      ["offerings", key].compact.join("/")
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
omcms-ruby-client-1.1.0 lib/omcms/resource/offering.rb
omcms-ruby-client-1.0.3 lib/omcms/resource/offering.rb
omcms-ruby-client-1.0.2 lib/omcms/resource/offering.rb
omcms-ruby-client-1.0.1 lib/omcms/resource/offering.rb
omcms-ruby-client-1.0.0.pre.alpha lib/omcms/resource/offering.rb