Class: ARMS::ShortcutInvocation

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

Overview

the object passed to a coder shortcut proc, which indicates the model and attribute name and passes optional arguments used to instantiate the coder.

Instance Attribute Summary collapse

Instance Attribute Details

#argsObject

arguments passed from the shortcut invocation to the coder shortcut proc



29
30
31
# File 'lib/arms.rb', line 29

def args
  @args
end

#attr_nameObject

the name of the attribute being serialized



27
28
29
# File 'lib/arms.rb', line 27

def attr_name
  @attr_name
end

#modelObject

the model on which an attribute is being serialized



25
26
27
# File 'lib/arms.rb', line 25

def model
  @model
end