Sha256: 2d9a6e4e2cd2765ac2e4ebf2850db3670474e7875a23c108dcb501460e5e94e7

Contents?: true

Size: 663 Bytes

Versions: 13

Compression:

Stored size: 663 Bytes

Contents

require 'rest-client'
require 'api-auth'
require 'filum'

require "loquor/version"
require "loquor/configuration"
require "loquor/client"
require 'loquor/object_hash'
require 'loquor/resource'
require 'loquor/resource_mock'

require 'loquor/api_call'
require "loquor/http_action"

module Loquor

  def self.config
    if block_given?
      yield loquor.config
    else
      loquor.config
    end
  end

  def self.get(url, *args)
    loquor.get(url, *args)
  end

  def self.put(url, payload)
    loquor.put(url, payload)
  end

  def self.post(url, payload)
    loquor.post(url, payload)
  end

  private

  def self.loquor
    @loquor ||= Client.new
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
loquor-1.5.0 lib/loquor.rb
loquor-1.4.0 lib/loquor.rb
loquor-1.3.0 lib/loquor.rb
loquor-1.2.1 lib/loquor.rb
loquor-1.2.0 lib/loquor.rb
loquor-1.1.1 lib/loquor.rb
loquor-1.1.0 lib/loquor.rb
loquor-1.0.0 lib/loquor.rb
loquor-0.9.0 lib/loquor.rb
loquor-0.8.0 lib/loquor.rb
loquor-0.7.0 lib/loquor.rb
loquor-0.6.0 lib/loquor.rb
loquor-0.5.4 lib/loquor.rb