Class: Skydrive::Photo
Overview
A user’s photo in SkyDrive.
Instance Attribute Summary
Attributes inherited from Object
Instance Method Summary collapse
-
#camera_make ⇒ String
The manufacturer of the camera that took the photo.
-
#camera_model ⇒ String
The brand and model number of the camera that took the photo.
-
#exposure_denominator ⇒ Integer
The denominator of the shutter speed that the photo was taken at.
-
#exposure_numerator ⇒ Integer
The numerator of the shutter speed that the photo was taken at.
-
#focal_length ⇒ Float
The focal length that the photo was taken at.
-
#focal_ratio ⇒ Float
The f-number that the photo was taken at.
-
#height ⇒ Integer
Height of the photo in pixels.
-
#images ⇒ Array<Hash>
Info about various sizes of the photos.
-
#location ⇒ Hash
The location where the photo was taken.
-
#picture ⇒ String
A URL of the photo’s picture.
-
#tags_count ⇒ Integer
The number of tags on the photo.
-
#tags_enabled? ⇒ Integer
Whether tags are enabled for the photo.
-
#when_taken ⇒ Time
Time when the photo was taken.
-
#width ⇒ Integer
Width of the photo in pixels.
Methods inherited from File
#comments_count, #comments_enabled?, #download, #download_link, #size, #source
Methods inherited from Object
#comment, #comments, #created_time, #delete, #description, #from, #id, #initialize, #is_embeddable?, #link, #name, #parent_id, #shared_with, #to_hash, #to_json, #type, #updated_time, #upload_location
Constructor Details
This class inherits a constructor from Skydrive::Object
Instance Method Details
#camera_make ⇒ String
The manufacturer of the camera that took the photo.
56 57 58 |
# File 'lib/skydrive/photo.rb', line 56 def camera_make object["camera_make"] end |
#camera_model ⇒ String
The brand and model number of the camera that took the photo.
62 63 64 |
# File 'lib/skydrive/photo.rb', line 62 def camera_model object["camera_model"] end |
#exposure_denominator ⇒ Integer
The denominator of the shutter speed that the photo was taken at
86 87 88 |
# File 'lib/skydrive/photo.rb', line 86 def exposure_denominator object["exposure_denominator"] end |
#exposure_numerator ⇒ Integer
The numerator of the shutter speed that the photo was taken at
80 81 82 |
# File 'lib/skydrive/photo.rb', line 80 def exposure_numerator object["exposure_numerator"] end |
#focal_length ⇒ Float
The focal length that the photo was taken at
74 75 76 |
# File 'lib/skydrive/photo.rb', line 74 def focal_length object["focal_length"] end |
#focal_ratio ⇒ Float
The f-number that the photo was taken at
68 69 70 |
# File 'lib/skydrive/photo.rb', line 68 def focal_ratio object["focal_ratio"] end |
#height ⇒ Integer
Height of the photo in pixels
38 39 40 |
# File 'lib/skydrive/photo.rb', line 38 def height object["height"] end |
#images ⇒ Array<Hash>
Info about various sizes of the photos
26 27 28 |
# File 'lib/skydrive/photo.rb', line 26 def images object["images"] end |
#location ⇒ Hash
The location where the photo was taken.
50 51 52 |
# File 'lib/skydrive/photo.rb', line 50 def location object["location"] end |
#picture ⇒ String
A URL of the photo’s picture.
20 21 22 |
# File 'lib/skydrive/photo.rb', line 20 def picture object["picture"] end |
#tags_count ⇒ Integer
The number of tags on the photo
7 8 9 |
# File 'lib/skydrive/photo.rb', line 7 def object["tags_count"] end |
#tags_enabled? ⇒ Integer
Whether tags are enabled for the photo
13 14 15 |
# File 'lib/skydrive/photo.rb', line 13 def object["tags_enabled"] end |
#when_taken ⇒ Time
Time when the photo was taken
32 33 34 |
# File 'lib/skydrive/photo.rb', line 32 def when_taken Time.new object["when_taken"] if object["when_taken"] end |
#width ⇒ Integer
Width of the photo in pixels
44 45 46 |
# File 'lib/skydrive/photo.rb', line 44 def width object["width"] end |