Class: Awsrm::ResourceReader

Inherits:
Object
  • Object
show all
Defined in:
lib/awsrm/resource.rb

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ ResourceReader

Returns a new instance of ResourceReader.



76
77
78
# File 'lib/awsrm/resource.rb', line 76

def initialize(resource)
  @resource = resource
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(key) ⇒ Object



88
89
90
# File 'lib/awsrm/resource.rb', line 88

def method_missing(key)
  @resource.send(key)
end

Instance Method Details

#arnObject



84
85
86
# File 'lib/awsrm/resource.rb', line 84

def arn
  raise 'not implemented'
end

#idObject



80
81
82
# File 'lib/awsrm/resource.rb', line 80

def id
  raise 'not implemented'
end

#respond_to?(key, *args) ⇒ Boolean

Returns:

  • (Boolean)


92
93
94
# File 'lib/awsrm/resource.rb', line 92

def respond_to?(key, *args)
  @resource.respond_to?(key) || super
end