Class: LeapCA::CouchStream
- Inherits:
-
Object
- Object
- LeapCA::CouchStream
- Defined in:
- lib/leap_ca/couch_stream.rb
Instance Method Summary collapse
- #get(path, options) ⇒ Object
-
#initialize(database_url) ⇒ CouchStream
constructor
A new instance of CouchStream.
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, ) url = url_for(path, ) # puts url Yajl::HttpStream.get(url, :symbolize_keys => true) do |hash| yield(hash) end end |