Class: Fog::Rackspace::Orchestration::Resource

Inherits:
Model
  • Object
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

Methods included from Reflectable

#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

#metadataObject



19
20
21
# File 'lib/fog/rackspace/models/orchestration/resource.rb', line 19

def 
  @metadata ||= service.(stack, self.resource_name).body['metadata']
end

#templateObject



23
24
25
# File 'lib/fog/rackspace/models/orchestration/resource.rb', line 23

def template
  @template ||= service.templates.get(self)
end