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

- (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