Class: Google::Apis::PlusV1::Person::Cover::CoverPhoto

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 person's primary cover image.

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

Returns a new instance of CoverPhoto



1711
1712
1713
# File 'generated/google/apis/plus_v1/classes.rb', line 1711

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

Instance Attribute Details

#heightFixnum

The height of the image. Corresponds to the JSON property height

Returns:

  • (Fixnum)


1699
1700
1701
# File 'generated/google/apis/plus_v1/classes.rb', line 1699

def height
  @height
end

#urlString

The URL of the image. Corresponds to the JSON property url

Returns:

  • (String)


1704
1705
1706
# File 'generated/google/apis/plus_v1/classes.rb', line 1704

def url
  @url
end

#widthFixnum

The width of the image. Corresponds to the JSON property width

Returns:

  • (Fixnum)


1709
1710
1711
# File 'generated/google/apis/plus_v1/classes.rb', line 1709

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1716
1717
1718
1719
1720
# File 'generated/google/apis/plus_v1/classes.rb', line 1716

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