Class: Sword2Ruby::User
- Inherits:
-
Object
- Object
- Sword2Ruby::User
- Defined in:
- lib/sword2ruby/user.rb
Instance Attribute Summary collapse
-
#on_behalf_of ⇒ Object
On-Behalf-Of username for authenticating with the Sword server.
-
#password ⇒ Object
Password for authenticating with the Sword server.
-
#username ⇒ Object
Username for authenticating with the Sword server.
Instance Method Summary collapse
-
#initialize(username = nil, password = nil, on_behalf_of = nil) ⇒ User
constructor
Creates a new User object.
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_of ⇒ Object
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 |
#password ⇒ Object
Password for authenticating with the Sword server
11 12 13 |
# File 'lib/sword2ruby/user.rb', line 11 def password @password end |
#username ⇒ Object
Username for authenticating with the Sword server
5 6 7 |
# File 'lib/sword2ruby/user.rb', line 5 def username @username end |