module Kekeewin::RestAPI

Public Class Methods

chapters(options={}) click to toggle source
# File lib/kekeewin.rb, line 135
def chapters(options={})
  options.merge!({:basic_auth => {:username => Base.username, :password => Base.password}})
  HTTParty.get(Base.host + "/rest_api/chapters.json", options)
end
configure(&block) click to toggle source
# File lib/kekeewin.rb, line 116
def configure(&block)
  Kekeewin::RestAPI::Base.configure(&block)
end
councils(options={}) click to toggle source
# File lib/kekeewin.rb, line 120
def councils(options={})
  options.merge!({:basic_auth => {:username => Base.username, :password => Base.password}})
  HTTParty.get(Base.host + "/rest_api/councils.json", options)
end
districts(options={}) click to toggle source
# File lib/kekeewin.rb, line 125
def districts(options={})
  options.merge!({:basic_auth => {:username => Base.username, :password => Base.password}})
  HTTParty.get(Base.host + "/rest_api/districts.json", options)
end
lodges(options={}) click to toggle source
# File lib/kekeewin.rb, line 130
def lodges(options={})
  options.merge!({:basic_auth => {:username => Base.username, :password => Base.password}})
  HTTParty.get(Base.host + "/rest_api/lodges.json", options)
end
positions(options={}) click to toggle source
# File lib/kekeewin.rb, line 140
def positions(options={})
  options.merge!({:basic_auth => {:username => Base.username, :password => Base.password}})
  HTTParty.get(Base.host + "/rest_api/positions.json", options)
end