Class: Awspec::ResourceReader

Inherits:
Object
  • Object
show all
Includes:
BlackListForwardable
Defined in:
lib/awspec/resource_reader.rb

Instance Method Summary collapse

Methods included from BlackListForwardable

#method_missing_via_black_list

Constructor Details

#initialize(resource) ⇒ ResourceReader

Returns a new instance of ResourceReader.



45
46
47
# File 'lib/awspec/resource_reader.rb', line 45

def initialize(resource)
  @resource_via_client = resource
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object



49
50
51
# File 'lib/awspec/resource_reader.rb', line 49

def method_missing(name)
  method_missing_via_black_list(name, delegate_to: @resource_via_client)
end