Class: Google::Apis::PhotoslibraryV1::Photo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_numberFloat

Apeture f number of the photo. Corresponds to the JSON property apertureFNumber

Returns:

  • (Float)


955
956
957
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 955

def aperture_f_number
  @aperture_f_number
end

#camera_makeString

Brand of the camera which took the photo. Corresponds to the JSON property cameraMake

Returns:

  • (String)


960
961
962
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 960

def camera_make
  @camera_make
end

#camera_modelString

Model of the camera which took the photo. Corresponds to the JSON property cameraModel

Returns:

  • (String)


965
966
967
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 965

def camera_model
  @camera_model
end

#exposure_timeString

Exposure time of the photo. Corresponds to the JSON property exposureTime

Returns:

  • (String)


970
971
972
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 970

def exposure_time
  @exposure_time
end

#focal_lengthFloat

Focal length of the photo. Corresponds to the JSON property focalLength

Returns:

  • (Float)


975
976
977
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 975

def focal_length
  @focal_length
end

#iso_equivalentFixnum

ISO of the photo. Corresponds to the JSON property isoEquivalent

Returns:

  • (Fixnum)


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