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



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

def attr_name
  @attr_name
end

#proxy_targetObject

Returns the value of attribute proxy_target

Returns:

  • (Object)

    the current value of proxy_target



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

def proxy_target
  @proxy_target
end