module PowerTrackV2::Stream

Public Class Methods

stream(url, opts = { ignore_heartbeat: true }, &block) click to toggle source
# File lib/powertrack_v2/stream.rb, line 7
def self.stream(url, opts = { ignore_heartbeat: true }, &block)
  headers = PowerTrackV2::HTTP.headers
  PowerTrackV2::HTTP.stream(url, headers, opts, &block)
end
url(publisher, account, stream_label) click to toggle source
# File lib/powertrack_v2/stream.rb, line 3
def self.url(publisher, account, stream_label)
  "https://gnip-stream.#{publisher}.com/stream/powertrack/accounts/#{account}/publishers/#{publisher}/#{stream_label}.json"
end