Class: Google::Apis::PlusDomainsV1::Person::Cover::CoverInfo

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

Extra information about the cover photo.

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

Returns a new instance of CoverInfo.



2159
2160
2161
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2159

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

Instance Attribute Details

#left_image_offsetFixnum

The difference between the left position of the cover image and the actual displayed cover image. Only valid for banner layout. Corresponds to the JSON property leftImageOffset

Returns:

  • (Fixnum)


2151
2152
2153
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2151

def left_image_offset
  @left_image_offset
end

#top_image_offsetFixnum

The difference between the top position of the cover image and the actual displayed cover image. Only valid for banner layout. Corresponds to the JSON property topImageOffset

Returns:

  • (Fixnum)


2157
2158
2159
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2157

def top_image_offset
  @top_image_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2164
2165
2166
2167
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2164

def update!(**args)
  @left_image_offset = args[:left_image_offset] if args.key?(:left_image_offset)
  @top_image_offset = args[:top_image_offset] if args.key?(:top_image_offset)
end