Sha256: d28ccafd054ff7a6905c470df8a2f78a595593258469c4f255cc41ed6f0c1f06

Contents?: true

Size: 649 Bytes

Versions: 5

Compression:

Stored size: 649 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)
    loquor.get(url)
  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

5 entries across 5 versions & 1 rubygems

Version Path
loquor-0.5.3 lib/loquor.rb
loquor-0.5.2 lib/loquor.rb
loquor-0.5.1 lib/loquor.rb
loquor-0.5.0 lib/loquor.rb
loquor-0.4.0 lib/loquor.rb