Class: Fog::Rackspace::Orchestration::Resource
- Inherits:
-
Model
- Object
- Model
- Fog::Rackspace::Orchestration::Resource
show all
- Includes:
- Reflectable
- Defined in:
- lib/fog/rackspace/models/orchestration/resource.rb
Constant Summary
Constants included
from Reflectable
Fog::Rackspace::Orchestration::Reflectable::REFLECTION_REGEX
Instance Method Summary
collapse
#resource, #stack
Instance Method Details
#events(options = {}) ⇒ Object
15
16
17
|
# File 'lib/fog/rackspace/models/orchestration/resource.rb', line 15
def events(options={})
@events ||= service.events.all(self, options)
end
|
19
20
21
|
# File 'lib/fog/rackspace/models/orchestration/resource.rb', line 19
def metadata
@metadata ||= service.show_resource_metadata(stack, self.resource_name).body['metadata']
end
|
#template ⇒ Object
23
24
25
|
# File 'lib/fog/rackspace/models/orchestration/resource.rb', line 23
def template
@template ||= service.templates.get(self)
end
|