class Quby::Questionnaires::Entities::Charting::Charts

Public Class Methods

new() click to toggle source
# File lib/quby/questionnaires/entities/charting/charts.rb, line 10
def initialize
  @charts = []
end

Public Instance Methods

add(chart) click to toggle source
# File lib/quby/questionnaires/entities/charting/charts.rb, line 22
def add(chart)
  fail "Duplicate chart: #{chart.key} already exists!" if find(chart.key)
  @charts << chart
end
each(*args, &block) click to toggle source
# File lib/quby/questionnaires/entities/charting/charts.rb, line 31
def each(*args, &block)
  @charts.each(*args, &block)
end
find(key) click to toggle source
# File lib/quby/questionnaires/entities/charting/charts.rb, line 27
def find(key)
  @charts.find { |i| i.key == key }
end
overview() click to toggle source
# File lib/quby/questionnaires/entities/charting/charts.rb, line 14
def overview
  @overview_chart
end
overview=(chart) click to toggle source
# File lib/quby/questionnaires/entities/charting/charts.rb, line 18
def overview=(chart)
  @overview_chart = chart
end
size() click to toggle source
# File lib/quby/questionnaires/entities/charting/charts.rb, line 35
def size
  @charts.size
end