class MoyskladIntegration::Connector

Constants

API_URL_LOGIN

Attributes

connection[R]

Public Class Methods

new() click to toggle source
# File lib/moysklad_integration/connector.rb, line 9
def initialize
  @connection = Faraday.new(url: API_URL_LOGIN, headers: { 'Content-Type': 'application/json' })
  @connection.basic_auth(ENV['MOYSKLAD_USERNAME'], ENV['MOYSKLAD_PASSWORD'])
end