Method: Moon::Action::Reference#initialize

Defined in:
lib/moon/action/reference.rb

#initialize(options) ⇒ Reference

Returns a new instance of Reference.



5
6
7
8
9
# File 'lib/moon/action/reference.rb', line 5

def initialize(options)
  from, to = options.values_at :from, :to
  @store_method, @store_key = from
  @model_key, @model_attribute = to
end