Class: Google::Apis::SheetsV4::DeveloperMetadataLocation

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

Overview

A location where metadata may be associated in a spreadsheet.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeveloperMetadataLocation

Returns a new instance of DeveloperMetadataLocation.



4944
4945
4946
# File 'lib/google/apis/sheets_v4/classes.rb', line 4944

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

Instance Attribute Details

#dimension_rangeGoogle::Apis::SheetsV4::DimensionRange

A range along a single dimension on a sheet. All indexes are zero-based. Indexes are half open: the start index is inclusive and the end index is exclusive. Missing indexes indicate the range is unbounded on that side. Corresponds to the JSON property dimensionRange



4926
4927
4928
# File 'lib/google/apis/sheets_v4/classes.rb', line 4926

def dimension_range
  @dimension_range
end

#location_typeString

The type of location this object represents. This field is read-only. Corresponds to the JSON property locationType

Returns:

  • (String)


4931
4932
4933
# File 'lib/google/apis/sheets_v4/classes.rb', line 4931

def location_type
  @location_type
end

#sheet_idFixnum

The ID of the sheet when metadata is associated with an entire sheet. Corresponds to the JSON property sheetId

Returns:

  • (Fixnum)


4936
4937
4938
# File 'lib/google/apis/sheets_v4/classes.rb', line 4936

def sheet_id
  @sheet_id
end

#spreadsheetBoolean Also known as: spreadsheet?

True when metadata is associated with an entire spreadsheet. Corresponds to the JSON property spreadsheet

Returns:

  • (Boolean)


4941
4942
4943
# File 'lib/google/apis/sheets_v4/classes.rb', line 4941

def spreadsheet
  @spreadsheet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4949
4950
4951
4952
4953
4954
# File 'lib/google/apis/sheets_v4/classes.rb', line 4949

def update!(**args)
  @dimension_range = args[:dimension_range] if args.key?(:dimension_range)
  @location_type = args[:location_type] if args.key?(:location_type)
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
  @spreadsheet = args[:spreadsheet] if args.key?(:spreadsheet)
end