Class: Google::Apis::PlusV1::Person::Cover::CoverPhoto
- Inherits:
-
Object
- Object
- Google::Apis::PlusV1::Person::Cover::CoverPhoto
- 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
-
#height ⇒ Fixnum
The height of the image.
-
#url ⇒ String
The URL of the image.
-
#width ⇒ Fixnum
The width of the image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CoverPhoto
constructor
A new instance of CoverPhoto.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#height ⇒ Fixnum
The height of the image.
Corresponds to the JSON property height
1699 1700 1701 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1699 def height @height end |
#url ⇒ String
The URL of the image.
Corresponds to the JSON property url
1704 1705 1706 |
# File 'generated/google/apis/plus_v1/classes.rb', line 1704 def url @url end |
#width ⇒ Fixnum
The width of the image.
Corresponds to the JSON property width
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 |