module Kpm::ClassMethods
Attributes
password[RW]
user[RW]
Public Instance Methods
auth_token()
click to toggle source
# File lib/kpm/client.rb, line 20 def auth_token @auth_token ||= Kpm::AuthToken.new end
build_path(path, params=nil)
click to toggle source
# File lib/kpm/client.rb, line 12 def build_path(path, params=nil) uri = URI("/api/v1/#{path}") if params != nil uri.query = URI.encode_www_form(params) end return uri end