Class: Google::Apis::PhotoslibraryV1::Video

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 video, for example, fps and processing status. 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) ⇒ Video

Returns a new instance of Video



1316
1317
1318
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1316

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#camera_makeString

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

Returns:

  • (String)


1299
1300
1301
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1299

def camera_make
  @camera_make
end

#camera_modelString

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

Returns:

  • (String)


1304
1305
1306
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1304

def camera_model
  @camera_model
end

#fpsFloat

Frame rate of the video. Corresponds to the JSON property fps

Returns:

  • (Float)


1309
1310
1311
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1309

def fps
  @fps
end

#statusString

Processing status of the video. Corresponds to the JSON property status

Returns:

  • (String)


1314
1315
1316
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1314

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1321
1322
1323
1324
1325
1326
# File 'generated/google/apis/photoslibrary_v1/classes.rb', line 1321

def update!(**args)
  @camera_make = args[:camera_make] if args.key?(:camera_make)
  @camera_model = args[:camera_model] if args.key?(:camera_model)
  @fps = args[:fps] if args.key?(:fps)
  @status = args[:status] if args.key?(:status)
end