Class: Gaskit::Query

Inherits:
Operation show all
Defined in:
lib/gaskit/boot/query.rb

Overview

A base class for query-style operations.

This uses the :query contract, which must be registered with Gaskit::Registry.

Examples:

class FindUsers < Gaskit::Query
  def call
    User.active
  end
end

Instance Attribute Summary

Attributes inherited from Operation

#context, #logger, #raise_on_failure

Method Summary

Methods inherited from Operation

call, #call, call!, error, errors_registry, #exit, #initialize, #raise_on_failure?, result_class, use_contract

Methods included from Hookable

#apply_after_hooks, #apply_around_hooks, #apply_before_hooks, #apply_hooks, included

Constructor Details

This class inherits a constructor from Gaskit::Operation