Class: Google::Apis::CloudsearchV1::VideoInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Next tag: 2

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoInfo

Returns a new instance of VideoInfo.



18752
18753
18754
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18752

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

Instance Attribute Details

#durationFixnum

Duration of the video in milliseconds. This field can be absent for recently uploaded video or inaccurate sometimes. Corresponds to the JSON property duration

Returns:

  • (Fixnum)


18750
18751
18752
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18750

def duration
  @duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18757
18758
18759
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18757

def update!(**args)
  @duration = args[:duration] if args.key?(:duration)
end