class Rubillow::Models::DemographicValue

Demographic data point.

Attributes

type[RW]

@return [String] data point type.

value[RW]

@return [String] data point value.

Public Class Methods

new(xml) click to toggle source

create a new data point. @param [String] xml for point.

# File lib/rubillow/models/demographic_value.rb, line 13
def initialize(xml)
  if !xml.empty?
    @value = xml.text
    @type = xml.attribute('type').value if !xml.attribute('type').nil?
  end
end

Public Instance Methods

to_s() click to toggle source

Prints value

@return [String] attribute value

# File lib/rubillow/models/demographic_value.rb, line 23
def to_s
  @value
end