Class: Essay::AttributeFeatures

Inherits:
AbstractFeatures show all
Includes:
AttributeHelper
Defined in:
lib/essay/attribute/attribute_features.rb

Defined Under Namespace

Classes: Base

Instance Attribute Summary

Attributes inherited from AbstractFeatures

#env

Instance Method Summary collapse

Methods included from AttributeHelper

#attribute_name, #attribute_traits

Methods included from SerializeHelper

#serialize_steps, #to_hash

Methods included from FeatureHelper

#is, #not, #with

Methods included from ModelHelper

#model_associations, #model_attributes, #model_class, #model_features, #model_traits

Constructor Details

#initialize(env) ⇒ AttributeFeatures

Returns a new instance of AttributeFeatures.



9
10
11
12
# File 'lib/essay/attribute/attribute_features.rb', line 9

def initialize(env)
  super
  @attribute_name = env.fetch(:attribute_name)
end