Class: Google::Apis::SheetsV4::DimensionProperties

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

Properties about a dimension.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DimensionProperties

Returns a new instance of DimensionProperties.



5018
5019
5020
# File 'lib/google/apis/sheets_v4/classes.rb', line 5018

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

Instance Attribute Details

#data_source_column_referenceGoogle::Apis::SheetsV4::DataSourceColumnReference

An unique identifier that references a data source column. Corresponds to the JSON property dataSourceColumnReference



4994
4995
4996
# File 'lib/google/apis/sheets_v4/classes.rb', line 4994

def data_source_column_reference
  @data_source_column_reference
end

#developer_metadataArray<Google::Apis::SheetsV4::DeveloperMetadata>

The developer metadata associated with a single row or column. Corresponds to the JSON property developerMetadata



4999
5000
5001
# File 'lib/google/apis/sheets_v4/classes.rb', line 4999

def 
  @developer_metadata
end

#hidden_by_filterBoolean Also known as: hidden_by_filter?

True if this dimension is being filtered. This field is read-only. Corresponds to the JSON property hiddenByFilter

Returns:

  • (Boolean)


5004
5005
5006
# File 'lib/google/apis/sheets_v4/classes.rb', line 5004

def hidden_by_filter
  @hidden_by_filter
end

#hidden_by_userBoolean Also known as: hidden_by_user?

True if this dimension is explicitly hidden. Corresponds to the JSON property hiddenByUser

Returns:

  • (Boolean)


5010
5011
5012
# File 'lib/google/apis/sheets_v4/classes.rb', line 5010

def hidden_by_user
  @hidden_by_user
end

#pixel_sizeFixnum

The height (if a row) or width (if a column) of the dimension in pixels. Corresponds to the JSON property pixelSize

Returns:

  • (Fixnum)


5016
5017
5018
# File 'lib/google/apis/sheets_v4/classes.rb', line 5016

def pixel_size
  @pixel_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5023
5024
5025
5026
5027
5028
5029
# File 'lib/google/apis/sheets_v4/classes.rb', line 5023

def update!(**args)
  @data_source_column_reference = args[:data_source_column_reference] if args.key?(:data_source_column_reference)
  @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
  @hidden_by_filter = args[:hidden_by_filter] if args.key?(:hidden_by_filter)
  @hidden_by_user = args[:hidden_by_user] if args.key?(:hidden_by_user)
  @pixel_size = args[:pixel_size] if args.key?(:pixel_size)
end