class Rubillow::Models::RegionChart

Chart for a region

Attributes

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/region_chart.rb, line 12
def to_html
  "<a href='#{@link}'>" + super + "</a>"
end

Protected Instance Methods

parse() click to toggle source

@private

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