Class: OMCMS::Component
- Defined in:
- lib/omcms/resource/component.rb
Instance Method Summary collapse
- #all ⇒ Object
- #get(id) ⇒ Object
-
#initialize(client, host, response = {}) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(client, host, response = {}) ⇒ Component
Returns a new instance of Component.
5 6 7 8 |
# File 'lib/omcms/resource/component.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/component.rb', line 10 def all perform_run self, request_path end |
#get(id) ⇒ Object
14 15 16 |
# File 'lib/omcms/resource/component.rb', line 14 def get(id) perform_run self, request_path(id) end |