Sha256: 30f9b115f0c25e73435eaacb2487444410f5e7423cd58f3bebf5fb8029e1c475

Contents?: true

Size: 373 Bytes

Versions: 5

Compression:

Stored size: 373 Bytes

Contents

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

module Rsift
  class Data < Rsift::Model
    
    def initialize(url, key, username)
      @format = "json"
      super(url, key, username)
    end
    
    def do(opts = {})
      get("stream.#{@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/data.rb
rsift-0.3.5 lib/rsift/data.rb
rsift-0.3.4 lib/rsift/data.rb
rsift-0.3.3 lib/rsift/data.rb
rsift-0.3.2 lib/rsift/data.rb