Sha256: 70bf047bd1547dd591e0a8038a18079defc21747ca1b5eba6229ca933d7ce385
Contents?: true
Size: 522 Bytes
Versions: 25
Compression:
Stored size: 522 Bytes
Contents
module Highrise class User < Base def join(group) Membership.create(:user_id => id, :group_id => group.id) end # Permits API-key retrieval using name and password. # Highrise::User.site = "https://yourcompany.highrise.com" # Highrise::User.user = "your_user_name" # Highrise::User.password = "s3kr3t" # Highrise::User.me.token # contains the API token for "your_user_name" def self.me user = User.new() find(:one, :from => "/me.xml") end end end
Version data entries
25 entries across 25 versions & 3 rubygems