Class: ChartMogul::APIResource

Inherits:
Object
  • Object
show all
Defined in:
lib/chart_mogul/updater.rb,
lib/chart_mogul/updater.rb

Class Method Summary collapse

Class Method Details

.connectionObject



17
18
19
20
21
22
23
24
25
# File 'lib/chart_mogul/updater.rb', line 17

def self.connection
  @connection ||= Faraday.new(url: ChartMogul::API_BASE) do |faraday|
    faraday.use Faraday::Request::BasicAuthentication, ChartMogul., ChartMogul.secret_key
    faraday.use Faraday::Response::RaiseError
    faraday.use Faraday::Adapter::NetHttp

    faraday.response :logger
  end
end

.prepend(*args) ⇒ Object



7
8
# File 'lib/chart_mogul/updater.rb', line 7

def self.prepend(*args)
end