Class: ActiveModel::AttributeMethods::ClassMethods::AttributeMethodPattern::AttributeMethod

Inherits:
Struct
  • Object
show all
Defined in:
activemodel/lib/active_model/attribute_methods.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#as_json

Instance Attribute Details

#attr_nameObject

Returns the value of attribute attr_name

Returns:

  • (Object)

    the current value of attr_name


424
425
426
# File 'activemodel/lib/active_model/attribute_methods.rb', line 424

def attr_name
  @attr_name
end

#proxy_targetObject

Returns the value of attribute proxy_target

Returns:

  • (Object)

    the current value of proxy_target


424
425
426
# File 'activemodel/lib/active_model/attribute_methods.rb', line 424

def proxy_target
  @proxy_target
end