Class: ActiveInteractor::Context::Base

Inherits:
Object
  • Object
show all
Includes:
ActiveModelErrorMethods, AttributeAssignment, AttributeRegistration, Type::DeclerationMethods, ActiveModel::Validations
Defined in:
lib/active_interactor/context/base.rb

Direct Known Subclasses

Input, Output, Runtime

Constant Summary

Constants included from Type::DeclerationMethods

Type::DeclerationMethods::Boolean

Instance Attribute Summary

Attributes included from ActiveModelErrorMethods

#errors

Instance Method Summary collapse

Methods included from AttributeAssignment

#[], #[]=

Methods included from ActiveModelErrorMethods

#read_attribute_for_validation

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



14
15
16
17
# File 'lib/active_interactor/context/base.rb', line 14

def initialize(attributes = {})
  super
  @errors = ActiveModel::Errors.new(self)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveInteractor::Context::AttributeAssignment