module SimpleEventickApi

Constants

API_VERSION
BASE_URL
VERSION

Public Class Methods

get(resource, opts) click to toggle source
# File lib/simple_eventick_api.rb, line 12
def self.get(resource, opts)
  url = "https://#{BASE_URL}/#{API_VERSION}/#{resource}.json"

  puts "url: #{url}"

  response = HTTParty.get(url, opts)
  parse(response.body)
end

Private Class Methods

parse(body) click to toggle source
# File lib/simple_eventick_api.rb, line 22
def self.parse (body)
  JSON.parse(body)
end