Method: Clientele::API.client
- Defined in:
- lib/clientele/api.rb
.client(opts = {}) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/clientele/api.rb', line 28 def client(opts={}) autoconfigure! if @client @client.tap do |client| client.configuration.load_hash(opts) end else @client = new(opts) end end |