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.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Class Method Summary collapse
-
.included(parent) ⇒ Object
Hooks into the mixin process to add HTTParty and the two APISmith::Client components to the given parent automatically.
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.
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 |