Class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Embed
- Inherits:
-
Object
- Object
- Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Embed
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/plus_domains_v1/classes.rb,
generated/google/apis/plus_domains_v1/representations.rb,
generated/google/apis/plus_domains_v1/representations.rb
Overview
If the attachment is a video, the embeddable link.
Instance Attribute Summary collapse
-
#type ⇒ String
Media type of the link.
-
#url ⇒ String
URL of the link.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Embed
constructor
A new instance of Embed.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Embed
Returns a new instance of Embed.
668 669 670 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 668 def initialize(**args) update!(**args) end |
Instance Attribute Details
#type ⇒ String
Media type of the link.
Corresponds to the JSON property type
661 662 663 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 661 def type @type end |
#url ⇒ String
URL of the link.
Corresponds to the JSON property url
666 667 668 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 666 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
673 674 675 676 |
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 673 def update!(**args) @type = args[:type] if args.key?(:type) @url = args[:url] if args.key?(:url) end |