Class: Google::Apis::SheetsV4::BasicChartAxis

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

An axis of the chart. A chart may not have more than one axis per axis position.

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

Returns a new instance of BasicChartAxis.


2376
2377
2378
# File 'generated/google/apis/sheets_v4/classes.rb', line 2376

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

Instance Attribute Details

#formatGoogle::Apis::SheetsV4::TextFormat

The format of a run of text in a cell. Absent values indicate that the field isn't specified. Corresponds to the JSON property format


2374
2375
2376
# File 'generated/google/apis/sheets_v4/classes.rb', line 2374

def format
  @format
end

#positionString

The position of this axis. Corresponds to the JSON property position

Returns:

  • (String)

2362
2363
2364
# File 'generated/google/apis/sheets_v4/classes.rb', line 2362

def position
  @position
end

#titleString

The title of this axis. If set, this overrides any title inferred from headers of the data. Corresponds to the JSON property title

Returns:

  • (String)

2368
2369
2370
# File 'generated/google/apis/sheets_v4/classes.rb', line 2368

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2381
2382
2383
2384
2385
# File 'generated/google/apis/sheets_v4/classes.rb', line 2381

def update!(**args)
  @position = args[:position] if args.key?(:position)
  @title = args[:title] if args.key?(:title)
  @format = args[:format] if args.key?(:format)
end