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