Class: Google::Apis::PhotoslibraryV1::Photo
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PhotoslibraryV1::Photo
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/photoslibrary_v1/classes.rb,
 generated/google/apis/photoslibrary_v1/representations.rb,
 generated/google/apis/photoslibrary_v1/representations.rb
Overview
Metadata that is specific to a photo, for example, ISO, focal length and exposure time. Some of these fields may be null or not included.
Instance Attribute Summary collapse
- 
  
    
      #aperture_f_number  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Apeture f number of the photo. 
- 
  
    
      #camera_make  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Brand of the camera which took the photo. 
- 
  
    
      #camera_model  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Model of the camera which took the photo. 
- 
  
    
      #exposure_time  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Exposure time of the photo. 
- 
  
    
      #focal_length  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Focal length of the photo. 
- 
  
    
      #iso_equivalent  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    ISO of the photo. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Photo 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Photo. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Photo
Returns a new instance of Photo
| 982 983 984 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 982 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#aperture_f_number ⇒ Float
Apeture f number of the photo.
Corresponds to the JSON property apertureFNumber
| 955 956 957 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 955 def aperture_f_number @aperture_f_number end | 
#camera_make ⇒ String
Brand of the camera which took the photo.
Corresponds to the JSON property cameraMake
| 960 961 962 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 960 def camera_make @camera_make end | 
#camera_model ⇒ String
Model of the camera which took the photo.
Corresponds to the JSON property cameraModel
| 965 966 967 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 965 def camera_model @camera_model end | 
#exposure_time ⇒ String
Exposure time of the photo.
Corresponds to the JSON property exposureTime
| 970 971 972 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 970 def exposure_time @exposure_time end | 
#focal_length ⇒ Float
Focal length of the photo.
Corresponds to the JSON property focalLength
| 975 976 977 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 975 def focal_length @focal_length end | 
#iso_equivalent ⇒ Fixnum
ISO of the photo.
Corresponds to the JSON property isoEquivalent
| 980 981 982 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 980 def iso_equivalent @iso_equivalent end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 987 988 989 990 991 992 993 994 | # File 'generated/google/apis/photoslibrary_v1/classes.rb', line 987 def update!(**args) @aperture_f_number = args[:aperture_f_number] if args.key?(:aperture_f_number) @camera_make = args[:camera_make] if args.key?(:camera_make) @camera_model = args[:camera_model] if args.key?(:camera_model) @exposure_time = args[:exposure_time] if args.key?(:exposure_time) @focal_length = args[:focal_length] if args.key?(:focal_length) @iso_equivalent = args[:iso_equivalent] if args.key?(:iso_equivalent) end |