Sha256: 120a6481dbfd9eb48f7ff33c0167b4e1992e196c9fd90e9488ca5bf8ec175866

Contents?: true

Size: 383 Bytes

Versions: 1

Compression:

Stored size: 383 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

1 entries across 1 versions & 1 rubygems

Version Path
fnordmetric-0.7.0 lib/fnordmetric/html_widget.rb