Class: Gecko::Pusher::Channel::GeckoMeter

Inherits:
Base
  • Object
show all
Defined in:
lib/gecko-pusher/channel/gecko_meter.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Gecko::Pusher::Channel::Base

Instance Method Details

#push(*args) ⇒ Object



6
7
8
9
10
11
# File 'lib/gecko-pusher/channel/gecko_meter.rb', line 6

def push(*args)
  options = extract_options(args)
  data = extract_values(args)
  data[:type] = options[:type] unless options[:type].nil?
  _push(data)
end