Class: ActiveInteractor::Context::Input

Inherits:
Base
  • Object
show all
Defined in:
lib/active_interactor/context/input.rb

Constant Summary

Constants included from Type::DeclerationMethods

Type::DeclerationMethods::Boolean

Instance Attribute Summary

Attributes included from ActiveModelErrorMethods

#errors

Class Method Summary collapse

Methods inherited from Base

#initialize, #validate!

Methods included from AttributeAssignment

#[], #[]=, #initialize

Methods included from ActiveModelErrorMethods

#read_attribute_for_validation

Constructor Details

This class inherits a constructor from ActiveInteractor::Context::Base

Dynamic Method Handling

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

Class Method Details

.argument(*attribute_args) ⇒ Object



6
7
8
# File 'lib/active_interactor/context/input.rb', line 6

def self.argument(*attribute_args)
  attribute_set.add(*attribute_args)
end

.argument_namesObject



10
11
12
# File 'lib/active_interactor/context/input.rb', line 10

def self.argument_names
  attribute_set.attribute_names
end

.argumentsObject



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

def self.arguments
  attribute_set.attributes
end