class Freshmaker::Client
Public Class Methods
new(email, password)
click to toggle source
# File lib/freshmaker/client.rb, line 9 def initialize(email, password) @auth = { username: email, password: password } end
Public Instance Methods
get(path, options={})
click to toggle source
# File lib/freshmaker/client.rb, line 13 def get(path, options={}) options.merge!({ basic_auth: @auth }) self.class.get("#{path}.xml?", options) end
tickets()
click to toggle source
# File lib/freshmaker/client.rb, line 22 def tickets Freshmaker::TicketProxy.new(self) end
users()
click to toggle source
# File lib/freshmaker/client.rb, line 18 def users Freshmaker::UserProxy.new(self) end