Class: Ziya::Gauges::Signal
- Defined in:
- lib/ziya/gauges/signal.rb
Instance Attribute Summary
Attributes inherited from Base
#components, #design_id, #license, #options, #type
Instance Method Summary collapse
-
#initialize(license, design_id = "signal") ⇒ Signal
constructor
————————————————————————- ctor.
-
#set_preferences(opts = {}) ⇒ Object
————————————————————————- set signal prefs.
Methods inherited from Base
Methods included from YamlHelpers::Gauges
Methods included from YamlHelpers::Base
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 ) [:delta] = [:signal] - [: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 ) [:delta] = [:signal] - [:previous] end |