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

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

Properties about a dimension.

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

Returns a new instance of DimensionProperties



3903
3904
3905
# File 'generated/google/apis/sheets_v4/classes.rb', line 3903

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

Instance Attribute Details

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

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



3883
3884
3885
# File 'generated/google/apis/sheets_v4/classes.rb', line 3883

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)


3889
3890
3891
# File 'generated/google/apis/sheets_v4/classes.rb', line 3889

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)


3895
3896
3897
# File 'generated/google/apis/sheets_v4/classes.rb', line 3895

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)


3901
3902
3903
# File 'generated/google/apis/sheets_v4/classes.rb', line 3901

def pixel_size
  @pixel_size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3908
3909
3910
3911
3912
3913
# File 'generated/google/apis/sheets_v4/classes.rb', line 3908

def update!(**args)
  @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