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, client_name: nil) ⇒ 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, client_name: nil) ⇒ CacheWrapper
Initialize a new CacheWrapper, internal use only.
10 11 12 13 14 |
# File 'lib/aws-dev-utils/cache_wrapper.rb', line 10 def initialize client, exp=60, client_name: nil @client = client @exp = exp @client_name = client_name || client.class.name 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 |