Class: FatSecret::Relations::HasManyProxy

Inherits:
BasicObject
Defined in:
lib/fat_secret/relations/has_many_proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ HasManyProxy

Returns a new instance of HasManyProxy.



7
8
9
# File 'lib/fat_secret/relations/has_many_proxy.rb', line 7

def initialize(target)
  @target = target
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object (protected)



13
14
15
# File 'lib/fat_secret/relations/has_many_proxy.rb', line 13

def method_missing(name, *args, &block)
  target.send(name, *args, &block)
end