Sha256: 8c6d6580e1afcf2ae226916549793ffde6773b8b7d4c75bd5411bc8d0bab5cf8

Contents?: true

Size: 390 Bytes

Versions: 7

Compression:

Stored size: 390 Bytes

Contents

module MnoEnterprise
  class ImpacClient
    include HTTParty

    def self.host
      "#{Settings.impac.protocol}://#{Settings.impac.host}"
    end

    def self.endpoint_url(endpoint, params)
      "#{File.join(host,endpoint)}?#{params.to_query}"
    end

    def self.send_get(endpoint, params, opts={})
      url = endpoint_url(endpoint, params)
      get(url, opts)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/mno_enterprise/impac_client.rb
mno-enterprise-core-3.3.3 lib/mno_enterprise/impac_client.rb
mno-enterprise-core-3.3.2 lib/mno_enterprise/impac_client.rb
mno-enterprise-core-3.2.1 lib/mno_enterprise/impac_client.rb
mno-enterprise-core-3.3.1 lib/mno_enterprise/impac_client.rb
mno-enterprise-core-3.3.0 lib/mno_enterprise/impac_client.rb
mno-enterprise-core-3.2.0 lib/mno_enterprise/impac_client.rb