Class: Essay::AttributeFeatures

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

Defined Under Namespace

Classes: Base

Instance Attribute Summary collapse

Attributes inherited from AbstractFeatures

#env

Instance Method Summary collapse

Methods included from SerializeHelper

#serialize_steps, #to_hash

Methods included from FeatureHelper

#is, #not, #with

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

#attributeObject (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