Class: Rubillow::Models::Chart
- Defined in:
- lib/rubillow/models/chart.rb
Overview
Base chart class.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#height ⇒ String
Image height.
-
#url ⇒ String
URL to image.
-
#width ⇒ String
Image width.
Attributes inherited from Base
#code, #message, #near_limit, #xml
Instance Method Summary collapse
-
#to_html ⇒ String
Returns HTML for the chart.
Methods inherited from Base
Methods included from XmlParsingHelper
Instance Attribute Details
#height ⇒ String
Returns image height.
6 7 8 |
# File 'lib/rubillow/models/chart.rb', line 6 def height @height end |
#url ⇒ String
Returns URL to image.
12 13 14 |
# File 'lib/rubillow/models/chart.rb', line 12 def url @url end |
#width ⇒ String
Returns image width.
9 10 11 |
# File 'lib/rubillow/models/chart.rb', line 9 def width @width end |
Instance Method Details
#to_html ⇒ String
Returns HTML for the chart.
16 17 18 |
# File 'lib/rubillow/models/chart.rb', line 16 def to_html "<img src='#{@url}' height='#{@height}' width='#{width}' />" end |