Class: Sword2Ruby::User

Inherits:
Object
  • Object
show all
Defined in:
lib/sword2ruby/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username = nil, password = nil, on_behalf_of = nil) ⇒ User

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.



18
19
20
21
22
# 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

Instance Attribute Details

#on_behalf_ofObject

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



8
9
10
# File 'lib/sword2ruby/user.rb', line 8

def on_behalf_of
  @on_behalf_of
end

#passwordObject

Password for authenticating with the Sword server



11
12
13
# File 'lib/sword2ruby/user.rb', line 11

def password
  @password
end

#usernameObject

Username for authenticating with the Sword server



5
6
7
# File 'lib/sword2ruby/user.rb', line 5

def username
  @username
end