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

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

The full image URL for photo attachments.

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

Returns a new instance of FullImage.


682
683
684
# File 'generated/google/apis/plus_v1/classes.rb', line 682

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)

665
666
667
# File 'generated/google/apis/plus_v1/classes.rb', line 665

def height
  @height
end

#typeString

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

Returns:

  • (String)

670
671
672
# File 'generated/google/apis/plus_v1/classes.rb', line 670

def type
  @type
end

#urlString

URL of the image. Corresponds to the JSON property url

Returns:

  • (String)

675
676
677
# File 'generated/google/apis/plus_v1/classes.rb', line 675

def url
  @url
end

#widthFixnum

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

Returns:

  • (Fixnum)

680
681
682
# File 'generated/google/apis/plus_v1/classes.rb', line 680

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


687
688
689
690
691
692
# File 'generated/google/apis/plus_v1/classes.rb', line 687

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