Class: Awspec::ResourceReader
- Inherits:
-
Object
- Object
- Awspec::ResourceReader
- Includes:
- BlackListForwardable
- Defined in:
- lib/awspec/resource_reader.rb
Instance Method Summary collapse
-
#describe_time_to_live(*args) ⇒ Object
TODO: this method is specific to DynamoDB and probably should be moved somewhere else.
-
#initialize(resource) ⇒ ResourceReader
constructor
A new instance of ResourceReader.
- #method_missing(name) ⇒ Object
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
54 55 56 |
# File 'lib/awspec/resource_reader.rb', line 54 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
50 51 52 |
# File 'lib/awspec/resource_reader.rb', line 50 def describe_time_to_live(*args) @resource_via_client.send('describe_time_to_live', *args) end |