class Rubillow::Models::PropertyChart

Chart for a property

Attributes

graphs_and_data[RW]

@return [String] url for chart

Public Instance Methods

to_html() click to toggle source

Returns HTML for the chart. @return [String] chart HTML.

Calls superclass method Rubillow::Models::Chart#to_html
# File lib/rubillow/models/property_chart.rb, line 10
def to_html
  "<a href='#{@graphs_and_data}'>" + super + "</a>"
end

Protected Instance Methods

parse() click to toggle source

@private

Calls superclass method Rubillow::Models::Chart#parse
# File lib/rubillow/models/property_chart.rb, line 17
def parse
  super
  
  return if !success?
  
  @graphs_and_data = @parser.xpath('//response/graphsanddata').text
end