Class: NVX::SDS::AccountInfo
- Inherits:
-
Object
- Object
- NVX::SDS::AccountInfo
- Defined in:
- lib/nvx/sds/APIClasses/accountinfo.rb
Overview
Holds the account information from the GetAccountInfo call.
Instance Method Summary collapse
-
#contact ⇒ Object
The contact object.
-
#initialize(doc) ⇒ AccountInfo
constructor
Stores the username and creates a new contact object.
-
#username ⇒ Object
The username.
Constructor Details
#initialize(doc) ⇒ AccountInfo
Stores the username and creates a new contact object.
14 15 16 17 |
# File 'lib/nvx/sds/APIClasses/accountinfo.rb', line 14 def initialize(doc) @username = (text = doc.root.elements["//Username"].get_text and text.value) @contact = ContactInfo.new(doc) end |
Instance Method Details
#contact ⇒ Object
The contact object.
25 26 27 |
# File 'lib/nvx/sds/APIClasses/accountinfo.rb', line 25 def contact @contact end |
#username ⇒ Object
The username.
20 21 22 |
# File 'lib/nvx/sds/APIClasses/accountinfo.rb', line 20 def username @username end |