Sha256: 0eeb045a3eaec0babe385325efc4a1cf390fe91d6bda77f6218439153b9e1cda
Contents?: true
Size: 483 Bytes
Versions: 3
Compression:
Stored size: 483 Bytes
Contents
module Nurego class Offering < APIResource def self.retrieve(id, api_key = nil) raise NotImplementedError.new("Offering cannot be retrieved with ID. Retrieve an offering using Offering.current") end def self.current(params = {}, api_key = nil) response, api_key = Nurego.request(:get, self.url, api_key, params) Util.convert_to_nurego_object(response, api_key) end def plans Plan.all({:offering => id }, @api_key) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nurego-1.1.20 | lib/nurego/offering.rb |
nurego-1.1.19 | lib/nurego/offering.rb |
nurego-1.1.18 | lib/nurego/offering.rb |