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
11 12 13 14 |
# File 'lib/aws-dev-utils/cache_wrapper.rb', line 11 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
16 17 18 |
# File 'lib/aws-dev-utils/cache_wrapper.rb', line 16 def method_missing m, *args, &block do_call(m, args.first || {}) end |