Class: PulseMeter::Visualize::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/pulse-meter/visualize/base.rb

Direct Known Subclasses

Layout, Page, Sensor, Widget

Instance Method Summary collapse

Constructor Details

#initialize(opts) ⇒ Base

Returns a new instance of Base.



4
5
6
# File 'lib/pulse-meter/visualize/base.rb', line 4

def initialize(opts)
  @opts = opts
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



8
9
10
# File 'lib/pulse-meter/visualize/base.rb', line 8

def method_missing(name, *args)
  @opts[name.to_sym]
end