Module: Trailblazer::Operation::Responder

Extended by:
Forwardable
Defined in:
lib/trailblazer/operation/responder.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
# File 'lib/trailblazer/operation/responder.rb', line 2

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#errorsObject



15
16
17
18
# File 'lib/trailblazer/operation/responder.rb', line 15

def errors
  return [] if @valid
  [1]
end

#to_modelObject



20
21
22
# File 'lib/trailblazer/operation/responder.rb', line 20

def to_model
  @model
end