Class: Google::Apis::PlusV1::Activity::Object::Attachment::Embed

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_v1/classes.rb,
generated/google/apis/plus_v1/representations.rb,
generated/google/apis/plus_v1/representations.rb

Overview

If the attachment is a video, the embeddable link.

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) ⇒ Embed

Returns a new instance of Embed.


647
648
649
# File 'generated/google/apis/plus_v1/classes.rb', line 647

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

Instance Attribute Details

#typeString

Media type of the link. Corresponds to the JSON property type

Returns:

  • (String)

640
641
642
# File 'generated/google/apis/plus_v1/classes.rb', line 640

def type
  @type
end

#urlString

URL of the link. Corresponds to the JSON property url

Returns:

  • (String)

645
646
647
# File 'generated/google/apis/plus_v1/classes.rb', line 645

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


652
653
654
655
# File 'generated/google/apis/plus_v1/classes.rb', line 652

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