Sha256: 397d5ba83c4827a55042ff4b081f4c2c77c8a7d51698a7ec137242882ffe8392

Contents?: true

Size: 400 Bytes

Versions: 16

Compression:

Stored size: 400 Bytes

Contents

class FnordMetric::HtmlWidget < FnordMetric::Widget
  def data
    super.merge(
      :html => @opts[:html]
    )
  end

  def add_gauges(gauges)
    @gauges = []
    @tick   = 0
    
    if !gauges.blank?
      error! "initializing a html widget with gauges is void"
    end
  end

  def data_gauges
    {}
  end

  def default_range(now=Time.now)
    0..0
  end

  def has_tick?
    false
  end
end

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
johnf-fnordmetric-1.2.10 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-1.2.9 lib/fnordmetric/widgets/html_widget.rb
johnf-fnordmetric-1.2.7 lib/fnordmetric/widgets/html_widget.rb
bp-fnordmetric-1.2.7 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-1.2.7 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-1.2.6 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-1.2.4 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-1.2.1 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-1.2.0 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-1.0.1 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-1.0.0 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-0.9.7 lib/fnordmetric/widgets/html_widget.rb
fnordmetric-0.7.5 lib/fnordmetric/html_widget.rb
fnordmetric-0.7.4 lib/fnordmetric/html_widget.rb
fnordmetric-0.7.3 lib/fnordmetric/html_widget.rb
fnordmetric-0.7.1 lib/fnordmetric/html_widget.rb