Sha256: a7c1a8241c7c701381a21c31c1773d43652739b3163f03e279d72167b1ec8469
Contents?: true
Size: 985 Bytes
Versions: 1
Compression:
Stored size: 985 Bytes
Contents
require 'rest-client' require 'api-auth' require 'filum' require "loquor/version" require "loquor/configuration" require "loquor/client" require 'loquor/interactor' require 'loquor/representation' require 'loquor/api_call' require "loquor/http_action" module Loquor Interactors = { "GroupDiscussion" => "/group_discussions", "GroupDiscussionPost" => "/group_discussion_posts", "MediaFile" => "/media_files", "Mnemonic" => "/mnemonics", "PremiumTutorial" => "/premium_tutorials", "Partner" => "/partners", "SyllabusItem" => "/syllabus_items", "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/interactors'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loquor-0.1.2 | lib/loquor.rb |