Class: GSGraph::Image
- Inherits:
-
Object
- Object
- GSGraph::Image
- Includes:
- Comparison
- Defined in:
- lib/gs_graph/image.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#source ⇒ Object
Returns the value of attribute source.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Image
constructor
A new instance of Image.
Methods included from Comparison
Constructor Details
#initialize(attributes = {}) ⇒ Image
Returns a new instance of Image.
5 6 7 8 9 |
# File 'lib/gs_graph/image.rb', line 5 def initialize(attributes = {}) @source = attributes[:source] @height = attributes[:height] @width = attributes[:width] end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/gs_graph/image.rb', line 4 def height @height end |
#source ⇒ Object
Returns the value of attribute source.
4 5 6 |
# File 'lib/gs_graph/image.rb', line 4 def source @source end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'lib/gs_graph/image.rb', line 4 def width @width end |