Class: Ziya::Gauges::Signal

Inherits:
Radial show all
Defined in:
lib/ziya/gauges/signal.rb

Instance Attribute Summary

Attributes inherited from Base

#components, #design_id, #license, #options, #type

Instance Method Summary collapse

Methods inherited from Base

#to_xml

Methods included from YamlHelpers::Gauges

#dial, #dials, #gauge

Methods included from YamlHelpers::Base

#clazz, #indent

Methods included from HtmlHelpers::Gauges

#_ziya_gauge, #class_id, #codebase, #default_gauge_options, #gauge_path, #gauges_swf, #ziya_gauge

Methods included from HtmlHelpers::Base

#escape_chars, #escape_once, #escape_url, #mime, #plugin_url, #setup_movie_size, #setup_wmode, #tag_options, #ziya_tag

Constructor Details

#initialize(license, design_id = "signal") ⇒ Signal


ctor



14
15
16
17
# File 'lib/ziya/gauges/signal.rb', line 14

def initialize( license, design_id="signal" )
  super( license, design_id )
  options[:delta] = options[:signal] - options[:previous]      
end

Instance Method Details

#set_preferences(opts = {}) ⇒ Object


set signal prefs



21
22
23
24
# File 'lib/ziya/gauges/signal.rb', line 21

def set_preferences( opts={} )
  super( opts )
  options[:delta] = options[:signal] - options[:previous]
end