Class: OMCMS::OfferingData

Inherits:
Resource show all
Defined in:
lib/omcms/resource/offering_data.rb

Instance Method Summary collapse

Constructor Details

#initialize(client, host, response = {}) ⇒ OfferingData

Returns a new instance of OfferingData.



5
6
7
8
# File 'lib/omcms/resource/offering_data.rb', line 5

def initialize(client, host, response = {})
  @offering_id = response["id"]
  super
end

Instance Method Details

#allObject



10
11
12
# File 'lib/omcms/resource/offering_data.rb', line 10

def all
  perform_run self, request_path
end

#get(id) ⇒ Object



14
15
16
# File 'lib/omcms/resource/offering_data.rb', line 14

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