Class: Google::Apis::SheetsV4::EmbeddedObjectPosition

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/sheets_v4/classes.rb,
generated/google/apis/sheets_v4/representations.rb,
generated/google/apis/sheets_v4/representations.rb

Overview

The position of an embedded object such as a chart.

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

Returns a new instance of EmbeddedObjectPosition.



5041
5042
5043
# File 'generated/google/apis/sheets_v4/classes.rb', line 5041

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

Instance Attribute Details

#new_sheetBoolean Also known as: new_sheet?

If true, the embedded object is put on a new sheet whose ID is chosen for you. Used only when writing. Corresponds to the JSON property newSheet

Returns:

  • (Boolean)


5027
5028
5029
# File 'generated/google/apis/sheets_v4/classes.rb', line 5027

def new_sheet
  @new_sheet
end

#overlay_positionGoogle::Apis::SheetsV4::OverlayPosition

The location an object is overlaid on top of a grid. Corresponds to the JSON property overlayPosition



5033
5034
5035
# File 'generated/google/apis/sheets_v4/classes.rb', line 5033

def overlay_position
  @overlay_position
end

#sheet_idFixnum

The sheet this is on. Set only if the embedded object is on its own sheet. Must be non-negative. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)


5039
5040
5041
# File 'generated/google/apis/sheets_v4/classes.rb', line 5039

def sheet_id
  @sheet_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5046
5047
5048
5049
5050
# File 'generated/google/apis/sheets_v4/classes.rb', line 5046

def update!(**args)
  @new_sheet = args[:new_sheet] if args.key?(:new_sheet)
  @overlay_position = args[:overlay_position] if args.key?(:overlay_position)
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
end