Class: FmStore::Associations::Proxy

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

Direct Known Subclasses

BelongsTo, HasMany

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



11
12
13
# File 'lib/fm_store/associations/proxy.rb', line 11

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/fm_store/associations/proxy.rb', line 9

def options
  @options
end

#targetObject (readonly)

Returns the value of attribute target.



9
10
11
# File 'lib/fm_store/associations/proxy.rb', line 9

def target
  @target
end