Class: OMCMS::OfferingData
- Defined in:
- lib/omcms/resource/offering_data.rb
Instance Method Summary collapse
- #all ⇒ Object
- #get(id) ⇒ Object
-
#initialize(client, host, response = {}) ⇒ OfferingData
constructor
A new instance of OfferingData.
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
#all ⇒ Object
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 |