Sha256: 43b259adceb43df5287f332d5ef76c3a283701067cf7164eab38bf91a168a2d7

Contents?: true

Size: 781 Bytes

Versions: 2

Compression:

Stored size: 781 Bytes

Contents

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

require "loquor/version"
require "loquor/configuration"
require "loquor/client"
require 'loquor/representation'

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

module Loquor

  Representations = {
    "GroupDiscussion"     => "/group_discussions",
    "GroupDiscussionPost" => "/group_discussion_posts",
    "MediaFile"           => "/media_files",
    "User"                => "/users"
  }

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

  def self.get(url)
    loquor.get(url)
  end

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

  private

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

require 'loquor/representations'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
loquor-0.1.0 lib/loquor.rb
loquor-0.0.2 lib/loquor.rb