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.



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

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



57
58
59
# File 'lib/awspec/resource_reader.rb', line 57

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

Instance Method Details

#describe_time_to_live(*args) ⇒ Object

TODO: this method is specific to DynamoDB and probably should be moved somewhere else



53
54
55
# File 'lib/awspec/resource_reader.rb', line 53

def describe_time_to_live(*args)
  @resource_via_client.send('describe_time_to_live', *args)
end