Class: OvhSavoni::SoAPI
- Inherits:
-
Object
- Object
- OvhSavoni::SoAPI
- Defined in:
- lib/ovh_savoni/soapi.rb
Class Attribute Summary collapse
-
.soap ⇒ Object
readonly
Returns the value of attribute soap.
Instance Method Summary collapse
-
#initialize(logins = {}, lang = :en) ⇒ SoAPI
constructor
Create a new instance and connect to OVH if nic and pwd provided.
Constructor Details
#initialize(logins = {}, lang = :en) ⇒ SoAPI
Create a new instance and connect to OVH if nic and pwd provided
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/ovh_savoni/soapi.rb', line 29 def initialize(logins={}, lang=:en) @nichandle = logins[:nichandle] @password = logins[:password] @sms_account = logins[:sms_account] @sms_user = logins[:sms_user] @sms_password= logins[:sms_password] #Connect if login infos provided if @nichandle && @password @session = self.login(@nichandle,@password,lang.to_s) end @session end |
Class Attribute Details
.soap ⇒ Object (readonly)
Returns the value of attribute soap.
4 5 6 |
# File 'lib/ovh_savoni/soapi.rb', line 4 def soap @soap end |