Class: Cameraplus::Photo

Inherits:
Object
  • Object
show all
Defined in:
lib/cameraplus/photo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Photo

Returns a new instance of Photo.



6
7
8
9
# File 'lib/cameraplus/photo.rb', line 6

def initialize(data)
  @data = data
  parse
end

Instance Attribute Details

#exifObject (readonly)

Returns the value of attribute exif.



4
5
6
# File 'lib/cameraplus/photo.rb', line 4

def exif
  @exif
end

#heightObject (readonly)

Returns the value of attribute height.



4
5
6
# File 'lib/cameraplus/photo.rb', line 4

def height
  @height
end

#largeObject (readonly)

Returns the value of attribute large.



4
5
6
# File 'lib/cameraplus/photo.rb', line 4

def large
  @large
end

#locationObject (readonly)

Returns the value of attribute location.



4
5
6
# File 'lib/cameraplus/photo.rb', line 4

def location
  @location
end

#mediumObject (readonly)

Returns the value of attribute medium.



4
5
6
# File 'lib/cameraplus/photo.rb', line 4

def medium
  @medium
end

#recipesObject (readonly)

Returns the value of attribute recipes.



4
5
6
# File 'lib/cameraplus/photo.rb', line 4

def recipes
  @recipes
end

#smallObject (readonly)

Returns the value of attribute small.



4
5
6
# File 'lib/cameraplus/photo.rb', line 4

def small
  @small
end

#widthObject (readonly)

Returns the value of attribute width.



4
5
6
# File 'lib/cameraplus/photo.rb', line 4

def width
  @width
end