Sha256: e6a921716929050e30bce87c839920e9e6add59fb4e610e37347b3778a6a4d24
Contents?: true
Size: 1.11 KB
Versions: 6
Compression:
Stored size: 1.11 KB
Contents
module Vzaar class AccountType attr_accessor :xml, :version, :id, :title, :monthly, :currency, :bandwidth, :borderless, :search_enhancer def initialize(xml) @xml = xml doc = REXML::Document.new xml @version = doc.elements['account/version'] ? doc.elements['account/version'].text : '' @id = doc.elements['account/account_id'] ? doc.elements['account/account_id'].text : '' @title = doc.elements['account/title'] ? doc.elements['account/title'].text : '' @monthly = doc.elements['account/cost/monthly'] ? doc.elements['account/cost/monthly'].text : '' @currency = doc.elements['account/cost/currency'] ? doc.elements['account/cost/currency'].text : '' @bandwidth = doc.elements['account/bandwidth'] ? doc.elements['account/bandwidth'].text : '' @borderless = doc.elements['account/rights/borderless'] ? doc.elements['account/rights/borderless'].text : '' @search_enhancer = doc.elements['account/rights/searchEnhancer'] ? doc.elements['account/rights/searchEnhancer'].text : '' end end end
Version data entries
6 entries across 6 versions & 1 rubygems