Class: Google::Apis::PlusV1::Person::Cover::CoverInfo

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

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.



1681
1682
1683
# File 'generated/google/apis/plus_v1/classes.rb', line 1681

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)


1673
1674
1675
# File 'generated/google/apis/plus_v1/classes.rb', line 1673

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)


1679
1680
1681
# File 'generated/google/apis/plus_v1/classes.rb', line 1679

def top_image_offset
  @top_image_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1686
1687
1688
1689
# File 'generated/google/apis/plus_v1/classes.rb', line 1686

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