class Gosquared::RubyLibrary

Public Class Methods

new(api_key, site_id) click to toggle source
# File lib/gosquared.rb, line 11
def initialize(api_key, site_id)
  @api_key = api_key
  @site_id = site_id
  raise 'api key cannot be empty/nil' if api_key.nil? || api_key.empty?
  raise 'site_token cannot be empty/nil' if site_id.nil? || site_id.empty?
end

Public Instance Methods

account() click to toggle source
# File lib/gosquared.rb, line 34
def account
  @account ||= Gosquared::Account.new(@api_key, @site_id)
end
now() click to toggle source
# File lib/gosquared.rb, line 30
def now
  @now ||= Gosquared::Now.new(@api_key, @site_id)
end
people() click to toggle source
# File lib/gosquared.rb, line 26
def people
  @people ||= Gosquared::People.new(@api_key, @site_id)
end
tracking() click to toggle source
# File lib/gosquared.rb, line 22
def tracking
  @tracking ||= Gosquared::Tracking.new(@api_key, @site_id)
end