Parent

Methods

Vzaar::AccountType

Attributes

xml[RW]
version[RW]
id[RW]
title[RW]
monthly[RW]
currency[RW]
bandwidth[RW]
borderless[RW]
search_enhancer[RW]

Public Class Methods

new(xml) click to toggle source
    # File lib/vzaar/account_type.rb, line 8
 8:     def initialize(xml)
 9:       @xml = xml
10:       doc = REXML::Document.new xml
11:       @version = doc.elements['account/version'] ?
12:         doc.elements['account/version'].text : ''
13:       @id = doc.elements['account/account_id'] ?
14:         doc.elements['account/account_id'].text : ''
15:       @title = doc.elements['account/title'] ?
16:         doc.elements['account/title'].text : ''
17:       @monthly = doc.elements['account/cost/monthly'] ?
18:         doc.elements['account/cost/monthly'].text : ''
19:       @currency = doc.elements['account/cost/currency'] ?
20:         doc.elements['account/cost/currency'].text : ''
21:       @bandwidth = doc.elements['account/bandwidth'] ?
22:         doc.elements['account/bandwidth'].text : ''
23:       @borderless = doc.elements['account/rights/borderless'] ?
24:         doc.elements['account/rights/borderless'].text : ''
25:       @search_enhancer = doc.elements['account/rights/searchEnhancer'] ?
26:         doc.elements['account/rights/searchEnhancer'].text : ''
27:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.