Module: PriceHubble::Client

Extended by:
ActiveSupport::Concern
Included in:
PriceHubble
Defined in:
lib/pricehubble.rb,
lib/pricehubble/client.rb,
lib/pricehubble/client/base.rb,
lib/pricehubble/client/dossiers.rb,
lib/pricehubble/client/valuation.rb,
lib/pricehubble/client/utils/request.rb,
lib/pricehubble/client/authentication.rb,
lib/pricehubble/client/utils/response.rb,
lib/pricehubble/client/request/default_headers.rb,
lib/pricehubble/client/request/data_sanitization.rb,
lib/pricehubble/client/response/data_sanitization.rb,
lib/pricehubble/client/response/recursive_open_struct.rb

Overview

A bunch of top-level client helpers.

Defined Under Namespace

Modules: Request, Response, Utils Classes: Authentication, Base, Dossiers, Valuation

Class Method Summary collapse

Class Method Details

.client(name) ⇒ PriceHubble::Client::Base

Get a low level client for the requested application. This returns an already instanciated client object, ready to use.

Parameters:

  • name (Symbol, String)

    the client name

Returns:



14
15
16
17
18
19
20
21
22
# File 'lib/pricehubble/client.rb', line 14

def client(name)
  name
    .to_s
    .underscore
    .camelize
    .prepend('PriceHubble::Client::')
    .constantize
    .new
end