Class: Cameraplus::Photo
- Inherits:
-
Object
- Object
- Cameraplus::Photo
- Defined in:
- lib/cameraplus/photo.rb
Instance Attribute Summary collapse
-
#exif ⇒ Object
readonly
Returns the value of attribute exif.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#large ⇒ Object
readonly
Returns the value of attribute large.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#medium ⇒ Object
readonly
Returns the value of attribute medium.
-
#recipes ⇒ Object
readonly
Returns the value of attribute recipes.
-
#small ⇒ Object
readonly
Returns the value of attribute small.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(data) ⇒ Photo
constructor
A new instance of Photo.
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
#exif ⇒ Object (readonly)
Returns the value of attribute exif.
4 5 6 |
# File 'lib/cameraplus/photo.rb', line 4 def exif @exif end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
4 5 6 |
# File 'lib/cameraplus/photo.rb', line 4 def height @height end |
#large ⇒ Object (readonly)
Returns the value of attribute large.
4 5 6 |
# File 'lib/cameraplus/photo.rb', line 4 def large @large end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/cameraplus/photo.rb', line 4 def location @location end |
#medium ⇒ Object (readonly)
Returns the value of attribute medium.
4 5 6 |
# File 'lib/cameraplus/photo.rb', line 4 def medium @medium end |
#recipes ⇒ Object (readonly)
Returns the value of attribute recipes.
4 5 6 |
# File 'lib/cameraplus/photo.rb', line 4 def recipes @recipes end |
#small ⇒ Object (readonly)
Returns the value of attribute small.
4 5 6 |
# File 'lib/cameraplus/photo.rb', line 4 def small @small end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
4 5 6 |
# File 'lib/cameraplus/photo.rb', line 4 def width @width end |