Class: Essay::AbstractFeature

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SerializeHelper

#serialize_steps, #to_hash

Methods included from ModelHelper

#active_record, #active_record_associations, #active_record_attributes, #active_record_features, #active_record_traits, #traits

Constructor Details

#initialize(env) ⇒ AbstractFeature

Returns a new instance of AbstractFeature.



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

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

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



12
13
14
# File 'lib/essay/abstract_feature.rb', line 12

def env
  @env
end