You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sqm-dashboards/app/presenters/analyze/graph/all_parent.rb

32 lines
519 B

# frozen_string_literal: true
module Analyze
module Graph
class AllParent
def initialize(scales:)
@scales = scales
end
def to_s
"All Data"
end
def slug
"all-data"
end
def source
Analyze::Source::AllData.new(slices: [slice], graph: self)
end
def slice
Analyze::Slice::AllData.new(graph: self)
end
def group
Analyze::Group::Base.new(name: nil, slug: nil, graph: nil)
end
end
end
end