Sha256: 41ecf76ee9abfb4b8d6685b208f8e10da828306d91b4874a5f31eeaa0e3586b1

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

require File.dirname(__FILE__) + "/model.rb"

module Rsift
  class Stream < Rsift::Model
    
    def initialize(url, key, username)
      @format = "json"
      @section = "stream"
      super(url, key, username)
    end
    
    def do(verb, opts = {})
      get("#{@section}/#{verb}.#{@format}?&"+
          Rsift::escape_options(opts).join("&"))
    end
    
    def get(path)
      @conn.get(path)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rsift-0.3.6 lib/rsift/stream.rb
rsift-0.3.5 lib/rsift/stream.rb
rsift-0.3.4 lib/rsift/stream.rb
rsift-0.3.3 lib/rsift/stream.rb
rsift-0.3.2 lib/rsift/stream.rb