class Sword2Ruby::User

Attributes

on_behalf_of[RW]

On-Behalf-Of username for authenticating with the Sword server

password[RW]

Password for authenticating with the Sword server

username[RW]

Username for authenticating with the Sword server

Public Class Methods

new(username=nil, password=nil, on_behalf_of=nil) click to toggle source

Creates a new User object.

Parameters

username

(optional) string value of the username.

password

(optional) string value of the password.

#on_behalf_of

(optional) string value indicating the username on whos behalf the actions will be performed.

# File lib/sword2ruby/user.rb, line 18
def initialize(username=nil, password=nil, on_behalf_of=nil)
  @username = username;
  @password = password;
  @on_behalf_of = on_behalf_of;
end