class CSH_UUID

Public Class Methods

get_uid_from_uuid(uuid) click to toggle source
# File lib/csh_uuid.rb, line 5
def self.get_uid_from_uuid(uuid)
    r = HTTP.get(@base_url + "/uid/" + uuid)
    if r.status == HTTP::Response::Status.coerce(200)
        return r.body.to_s
    else
        return false
    end
end
get_uuid_from_uid(uid) click to toggle source
# File lib/csh_uuid.rb, line 14
def self.get_uuid_from_uid(uid)
    r = HTTP.get(@base_url + "/uuid/" + uid)
    if r.status == HTTP::Response::Status.coerce(200)
        return r.body.to_s
    else
        return false
    end
end