Class: Google::Apis::SheetsV4::CandlestickData

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

The Candlestick chart data, each containing the low, open, close, and high values for a series.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CandlestickData

Returns a new instance of CandlestickData.



2492
2493
2494
# File 'lib/google/apis/sheets_v4/classes.rb', line 2492

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

Instance Attribute Details

#close_seriesGoogle::Apis::SheetsV4::CandlestickSeries

The series of a CandlestickData. Corresponds to the JSON property closeSeries



2475
2476
2477
# File 'lib/google/apis/sheets_v4/classes.rb', line 2475

def close_series
  @close_series
end

#high_seriesGoogle::Apis::SheetsV4::CandlestickSeries

The series of a CandlestickData. Corresponds to the JSON property highSeries



2480
2481
2482
# File 'lib/google/apis/sheets_v4/classes.rb', line 2480

def high_series
  @high_series
end

#low_seriesGoogle::Apis::SheetsV4::CandlestickSeries

The series of a CandlestickData. Corresponds to the JSON property lowSeries



2485
2486
2487
# File 'lib/google/apis/sheets_v4/classes.rb', line 2485

def low_series
  @low_series
end

#open_seriesGoogle::Apis::SheetsV4::CandlestickSeries

The series of a CandlestickData. Corresponds to the JSON property openSeries



2490
2491
2492
# File 'lib/google/apis/sheets_v4/classes.rb', line 2490

def open_series
  @open_series
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2497
2498
2499
2500
2501
2502
# File 'lib/google/apis/sheets_v4/classes.rb', line 2497

def update!(**args)
  @close_series = args[:close_series] if args.key?(:close_series)
  @high_series = args[:high_series] if args.key?(:high_series)
  @low_series = args[:low_series] if args.key?(:low_series)
  @open_series = args[:open_series] if args.key?(:open_series)
end