module Testcloud::Billing
Constants
- DEFAULT_URL
- HER
Public Class Methods
setup(options={})
click to toggle source
# File lib/testcloud/billing.rb, line 9 def self.setup(options={}) options[:url] ||= DEFAULT_URL HER.setup url: options[:url] do |c| # Authentication c.use Testcloud::Billing::Authentication, api_key: options[:api_key] if options[:api_key].present? # Request c.use Faraday::Request::UrlEncoded # Response c.use Her::Middleware::DefaultParseJSON # Adapter c.use Faraday::Adapter::NetHttp end end