Class: FbGraph::Image

Inherits:
Object
  • Object
show all
Includes:
Comparison
Defined in:
lib/fb_graph/image.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Comparison

#==

Constructor Details

#initialize(attributes = {}) ⇒ Image

Returns 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

#heightObject

Returns the value of attribute height


4
5
6
# File 'lib/fb_graph/image.rb', line 4

def height
  @height
end

#sourceObject

Returns the value of attribute source


4
5
6
# File 'lib/fb_graph/image.rb', line 4

def source
  @source
end

#widthObject

Returns the value of attribute width


4
5
6
# File 'lib/fb_graph/image.rb', line 4

def width
  @width
end