Method: APIClientBase::Base.module

Defined in:
lib/api_client_base/base.rb

.module(opts = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/api_client_base/base.rb', line 4

def self.module(opts={})
  mod = Module.new do
    mattr_accessor :api_client_base_base_options

    def self.included(base)
      base.mattr_accessor :api_client_base_base_options
      base.api_client_base_base_options = self.api_client_base_base_options
      base.send :include, APIClientBase::Base
    end
  end

  mod.api_client_base_base_options = opts

  mod
end