class Jiji::Model::Graphing::Graph
Public Instance Methods
<<(values)
click to toggle source
グラフにデータを追加します。
graph << [10, 20]
- values
-
値の配列
# File src/jiji/model/graphing/graph.rb, line 72 def <<(values) @current_values = values end
destroy(*args)
click to toggle source
Calls superclass method
# File src/jiji/model/graphing/graph.rb, line 116 def destroy(*args) GraphData.where(graph_id: id).delete super end
setup_data_savers(saving_interval)
click to toggle source
# File src/jiji/model/graphing/graph.rb, line 108 def setup_data_savers(saving_interval) @savers = Jiji::Model::Trading::Intervals.instance.all .reject { |i| i.id == :fifteen_seconds } .map do |i| Internal::GraphDataSaver.new(self, i, saving_interval) end end