Class: OMCMS::Component

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

Instance Method Summary collapse

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

#allObject



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