Class: Gecko::Pusher::Channel::Number
- Defined in:
- lib/gecko-pusher/channel/number.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Gecko::Pusher::Channel::Base
Instance Method Details
#push(*args) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/gecko-pusher/channel/number.rb', line 6 def push(*args) = (args) data = {item: extract_values(args)} data[:type] = [:type] unless [:type].nil? data[:absolute] = [:absolute] unless [:absolute].nil? _push(data) end |