Module: Manticore::Facade

Included in:
Manticore
Defined in:
lib/manticore/facade.rb

Overview

Mix-in that can be used to add Manticore functionality to arbitrary classes. Its primary purpose is to extend the Manticore module for one-shot usage.

Examples:

Simple mix-in usage

class Foo
  include Manticore::Facade
  include_http_client pool_size: 5

  def latest_results
    Foo.get "http://some.com/url"
  end
end

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(other) ⇒ Object



18
19
20
# File 'lib/manticore/facade.rb', line 18

def self.included(other)
  other.send :extend, ClassMethods
end