Class: Sharepoint::Soap::Authenticate
- Inherits:
-
Object
- Object
- Sharepoint::Soap::Authenticate
- Defined in:
- lib/sharepoint-session.rb
Constant Summary collapse
- SOURCE =
"soap/authenticate.xml.erb"
Instance Attribute Summary collapse
-
#login_url ⇒ Object
Returns the value of attribute login_url.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Authenticate
constructor
A new instance of Authenticate.
Constructor Details
#initialize(params = {}) ⇒ Authenticate
Returns a new instance of Authenticate.
21 22 23 24 25 26 |
# File 'lib/sharepoint-session.rb', line 21 def initialize params = {} Authenticate.initialize @username = params[:username] @password = params[:password] @login_url = params[:url] end |
Instance Attribute Details
#login_url ⇒ Object
Returns the value of attribute login_url.
11 12 13 |
# File 'lib/sharepoint-session.rb', line 11 def login_url @login_url end |
#password ⇒ Object
Returns the value of attribute password.
11 12 13 |
# File 'lib/sharepoint-session.rb', line 11 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
11 12 13 |
# File 'lib/sharepoint-session.rb', line 11 def username @username end |
Class Method Details
.initialize ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/sharepoint-session.rb', line 13 def self.initialize return if @initialized == true @erb = ERB.new(::File.read ::File.dirname(__FILE__) + '/' + SOURCE) @erb.filename = SOURCE @erb.def_method self, 'render()' @initialized = true end |