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.



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

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



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

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