Class: Essay::AttributeFeatures
- Inherits:
-
AbstractFeatures
- Object
- AbstractFeatures
- Essay::AttributeFeatures
- Defined in:
- lib/essay/attribute/attribute_features.rb
Defined Under Namespace
Classes: Base
Instance Attribute Summary collapse
-
#attribute ⇒ Object
(also: #this_attribute)
readonly
Returns the value of attribute attribute.
Attributes inherited from AbstractFeatures
Instance Method Summary collapse
-
#initialize(env) ⇒ AttributeFeatures
constructor
A new instance of AttributeFeatures.
Methods included from SerializeHelper
Methods included from FeatureHelper
Methods included from ModelHelper
#active_record, #active_record_associations, #active_record_attributes, #active_record_features, #active_record_traits, #traits
Constructor Details
#initialize(env) ⇒ AttributeFeatures
Returns a new instance of AttributeFeatures.
11 12 13 14 |
# File 'lib/essay/attribute/attribute_features.rb', line 11 def initialize(env) super @attribute = env.fetch(:attribute) end |
Instance Attribute Details
#attribute ⇒ Object (readonly) Also known as: this_attribute
Returns the value of attribute attribute.
8 9 10 |
# File 'lib/essay/attribute/attribute_features.rb', line 8 def attribute @attribute end |