Module: APISmith::Client

Included in:
Base
Defined in:
lib/api_smith/client.rb

Overview

A mixin providing the base set of functionality for building API clients.

See Also:

Author:

  • Darcy Laycock

  • Steve Webb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(parent) ⇒ Object

Hooks into the mixin process to add HTTParty and the two APISmith::Client components to the given parent automatically.

Parameters:

  • parent (Class)

    the object this is being mixed into


18
19
20
21
22
23
24
# File 'lib/api_smith/client.rb', line 18

def self.included(parent)
  parent.class_eval do
    include HTTParty
    include InstanceMethods
    extend  ClassMethods
  end
end