Class: Google::Apis::PlusDomainsV1::Activity::Object::Attachment::Image

Inherits:
Object
  • Object
show all
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

The preview image for photos or videos.

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

Returns a new instance of Image



740
741
742
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 740

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

Instance Attribute Details

#heightFixnum

The height, in pixels, of the linked resource. Corresponds to the JSON property height

Returns:

  • (Fixnum)


723
724
725
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 723

def height
  @height
end

#typeString

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

Returns:

  • (String)


728
729
730
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 728

def type
  @type
end

#urlString

Image URL. Corresponds to the JSON property url

Returns:

  • (String)


733
734
735
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 733

def url
  @url
end

#widthFixnum

The width, in pixels, of the linked resource. Corresponds to the JSON property width

Returns:

  • (Fixnum)


738
739
740
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 738

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



745
746
747
748
749
750
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 745

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