Class: Google::Apis::SheetsV4::DimensionProperties
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::DimensionProperties
- 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
-
#hidden_by_filter ⇒ Boolean
(also: #hidden_by_filter?)
True if this dimension is being filtered.
-
#hidden_by_user ⇒ Boolean
(also: #hidden_by_user?)
True if this dimension is explicitly hidden.
-
#pixel_size ⇒ Fixnum
The height (if a row) or width (if a column) of the dimension in pixels.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DimensionProperties
constructor
A new instance of DimensionProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DimensionProperties
Returns a new instance of DimensionProperties
3165 3166 3167 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3165 def initialize(**args) update!(**args) end |
Instance Attribute Details
#hidden_by_filter ⇒ Boolean Also known as:
True if this dimension is being filtered.
This field is read-only.
Corresponds to the JSON property hiddenByFilter
3151 3152 3153 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3151 def hidden_by_filter @hidden_by_filter end |
#hidden_by_user ⇒ Boolean Also known as:
True if this dimension is explicitly hidden.
Corresponds to the JSON property hiddenByUser
3157 3158 3159 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3157 def hidden_by_user @hidden_by_user end |
#pixel_size ⇒ Fixnum
The height (if a row) or width (if a column) of the dimension in pixels.
Corresponds to the JSON property pixelSize
3163 3164 3165 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3163 def pixel_size @pixel_size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3170 3171 3172 3173 3174 |
# File 'generated/google/apis/sheets_v4/classes.rb', line 3170 def update!(**args) @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 |