Class: LeapCA::CouchStream

Inherits:
Object
  • Object
show all
Defined in:
lib/leap_ca/couch_stream.rb

Instance Method Summary collapse

Constructor Details

#initialize(database_url) ⇒ CouchStream

Returns a new instance of CouchStream.



5
6
7
# File 'lib/leap_ca/couch_stream.rb', line 5

def initialize(database_url)
  @database_url = database_url
end

Instance Method Details

#get(path, options) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/leap_ca/couch_stream.rb', line 9

def get(path, options)
  url = url_for(path, options)
  # puts url
  Yajl::HttpStream.get(url, :symbolize_keys => true) do |hash|
    yield(hash)
  end
end