Class: Google::Apis::CloudsearchV1::Presenter

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

Presenter contains information about which device is currently presenting as well as which device requested the presenter to be set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Presenter

Returns a new instance of Presenter.



12647
12648
12649
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12647

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

Instance Attribute Details

#by_device_idString

The device resource name of the device which requested the current presenter to be set. This field can not be modified by clients. Corresponds to the JSON property byDeviceId

Returns:

  • (String)


12634
12635
12636
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12634

def by_device_id
  @by_device_id
end

#copresenter_device_idsArray<String>

The device resource names of other devices which can control the current presentation. Corresponds to the JSON property copresenterDeviceIds

Returns:

  • (Array<String>)


12640
12641
12642
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12640

def copresenter_device_ids
  @copresenter_device_ids
end

#presenter_device_idString

The device resource name of the currently presenting device. Corresponds to the JSON property presenterDeviceId

Returns:

  • (String)


12645
12646
12647
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12645

def presenter_device_id
  @presenter_device_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12652
12653
12654
12655
12656
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 12652

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