# File lib/fog/orchestration/openstack/models/resources.rb, line 19 def get(resource_name, stack = nil) stack = first.stack if stack.nil? data = service.show_resource_data(stack.stack_name, stack.id, resource_name).body['resource'] new(data) rescue Fog::Compute::OpenStack::NotFound nil end