Class: Essay::AbstractFeatures

Inherits:
Object
  • Object
show all
Includes:
FeatureHelper, ModelHelper, SerializeHelper
Defined in:
lib/essay/abstract_features.rb

Instance Attribute Summary collapse

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) ⇒ AbstractFeatures

Returns a new instance of AbstractFeatures.



16
17
18
19
# File 'lib/essay/abstract_features.rb', line 16

def initialize(env)
  @env           = env
  @active_record = env.fetch(:active_record)
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



14
15
16
# File 'lib/essay/abstract_features.rb', line 14

def env
  @env
end