Class: Startback::Operation::ErrorOperation

Inherits:
Startback::Operation show all
Defined in:
lib/startback/operation/error_operation.rb

Instance Attribute Summary collapse

Attributes inherited from Startback::Operation

#input, #world

Instance Method Summary collapse

Methods inherited from Startback::Operation

emits, #method_missing, #respond_to?, #with_context

Methods included from Support::TransactionPolicy

#after_commit, #transaction_policy, #transaction_policy=

Methods included from Support::OperationRunner

included, #run

Methods included from Errors

bad_request_error!, conflict_error!, expectation_failed_error!, forbidden_error!, gone_error!, internal_server_error!, locked_error!, method_not_allowed_error!, not_acceptable_error!, not_found_error!, not_implemented_error!, precondition_failed_error!, precondition_required_error!, server_error!, unauthorized_error!, unsupported_media_type_error!, user_error!

Constructor Details

#initialize(details) ⇒ ErrorOperation

Returns a new instance of ErrorOperation.



5
6
7
# File 'lib/startback/operation/error_operation.rb', line 5

def initialize(details)
  @details = details
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Startback::Operation

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



8
9
10
# File 'lib/startback/operation/error_operation.rb', line 8

def details
  @details
end

Instance Method Details

#bind(world) ⇒ Object



13
14
15
# File 'lib/startback/operation/error_operation.rb', line 13

def bind(world)
  self
end

#callObject



10
11
# File 'lib/startback/operation/error_operation.rb', line 10

def call
end