Class: NVX::SDS::AccountInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/nvx/sds/APIClasses/accountinfo.rb

Overview

Holds the account information from the GetAccountInfo call.

Instance Method Summary collapse

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

#contactObject

The contact object.



25
26
27
# File 'lib/nvx/sds/APIClasses/accountinfo.rb', line 25

def contact
    @contact
end

#usernameObject

The username.



20
21
22
# File 'lib/nvx/sds/APIClasses/accountinfo.rb', line 20

def username
    @username
end