Class: EnumArgs::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/enum_args/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object, method_name, *args, using: {}, cache: nil) ⇒ Proxy

Returns a new instance of Proxy.



15
16
17
18
19
20
21
# File 'lib/enum_args/proxy.rb', line 15

def initialize(object, method_name, *args, using: {}, cache: nil)
  self.using = using
  @object = object
  @method_name = method_name
  @args = args
  @cache = cache || CREATE_ENUM
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



12
13
14
# File 'lib/enum_args/proxy.rb', line 12

def args
  @args
end

#cacheObject

Returns the value of attribute cache.



12
13
14
# File 'lib/enum_args/proxy.rb', line 12

def cache
  @cache
end

#method_nameObject

Returns the value of attribute method_name.



12
13
14
# File 'lib/enum_args/proxy.rb', line 12

def method_name
  @method_name
end

#objectObject

Returns the value of attribute object.



12
13
14
# File 'lib/enum_args/proxy.rb', line 12

def object
  @object
end

#usingObject

Returns the value of attribute using.



13
14
15
# File 'lib/enum_args/proxy.rb', line 13

def using
  @using
end