Class: Google::Apis::PlusDomainsV1::Person::Cover::CoverPhoto

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 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



2189
2190
2191
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2189

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

Instance Attribute Details

#heightFixnum

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

Returns:

  • (Fixnum)


2177
2178
2179
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2177

def height
  @height
end

#urlString

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

Returns:

  • (String)


2182
2183
2184
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2182

def url
  @url
end

#widthFixnum

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

Returns:

  • (Fixnum)


2187
2188
2189
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2187

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2194
2195
2196
2197
2198
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2194

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