Sha256: 13612a630173eb05174757776be41ec4d61d813680de9be979594dbde6d307af

Contents?: true

Size: 679 Bytes

Versions: 2

Compression:

Stored size: 679 Bytes

Contents

require 'rails/all'
require 'savon'

require 'nori_patch'
require 'tehportal/engine'

# --
# Обертка для запросов к бекенду Техпортала (Ремеди)
# ++
module Tehportal
  extend ActiveSupport::Autoload

  autoload :Attachment
  autoload :Configuration
  autoload :Model
  autoload :RemedyClient

  class << self
    attr_writer :config
    attr_reader :client

    delegate :request, to: :client

    def configure
      yield(config)
    end

    def config
      @config ||= Configuration.new
    end

    def setup_client(login, password)
      @client = RemedyClient.new(login, password)
    end
  end
end

require 'tehportal/version'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tehportal-0.1.3 lib/tehportal.rb
tehportal-0.1.0 lib/tehportal.rb