Class: AwsDevUtils::CacheWrapper

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/aws-dev-utils/cache_wrapper.rb

Instance Method Summary collapse

Methods included from Utils

nested_hash, nested_struct

Constructor Details

#initialize(client, exp = 60, client_name: nil) ⇒ CacheWrapper

Initialize a new CacheWrapper, internal use only.

Parameters:



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