Class: AwsDevUtils::CacheWrapper
- Inherits:
-
Object
- Object
- AwsDevUtils::CacheWrapper
- Includes:
- Utils
- Defined in:
- lib/aws-dev-utils/cache_wrapper.rb
Instance Method Summary collapse
-
#initialize(client, exp = 60) ⇒ CacheWrapper
constructor
Initialize a new CacheWrapper, internal use only.
- #method_missing(m, *args, &block) ⇒ Object
Methods included from Utils
Constructor Details
#initialize(client, exp = 60) ⇒ CacheWrapper
Initialize a new CacheWrapper, internal use only.
10 11 12 13 |
# File 'lib/aws-dev-utils/cache_wrapper.rb', line 10 def initialize client, exp=60 @client = client @exp = exp end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
15 16 17 |
# File 'lib/aws-dev-utils/cache_wrapper.rb', line 15 def method_missing m, *args, &block do_call(m, args.first || {}) end |