Sha256: 09013cdc5a799975c6a90e1bbea2e5902a03a765807ca87f507b6a00b8068388
Contents?: true
Size: 337 Bytes
Versions: 6
Compression:
Stored size: 337 Bytes
Contents
require 'json' module Slate module Calculation class Base def initialize(graph) @graph = graph end def result nil # Override this end protected def data @data ||= JSON.parse(@graph.download(:json)).first["datapoints"].map(&:first).compact end end end end
Version data entries
6 entries across 6 versions & 1 rubygems