Changeset 352
- Timestamp:
- 04/21/08 01:03:47 (7 months ago)
- Files:
-
- 1 modified
-
trunk/tutorial/rb/BookmarkExample.rb (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tutorial/rb/BookmarkExample.rb
r336 r352 35 35 transport = TFramedTransport.new(TSocket.new('localhost', THRUDOC_PORT)) 36 36 protocol = TBinaryProtocol.new(transport) 37 @thrudoc = Thrudoc:: Client.new(protocol)37 @thrudoc = Thrudoc::Thrudoc::Client.new(protocol) 38 38 39 39 transport.open() 40 41 @thrudoc.admin("create_bucket", THRUDOC_BUCKET); 40 42 end 41 43 … … 43 45 transport = TFramedTransport.new(TSocket.new('localhost', THRUDEX_PORT)) 44 46 protocol = TBinaryProtocol.new(transport) 45 @thrudex = Thrudex:: Client.new(protocol)47 @thrudex = Thrudex::Thrudex::Client.new(protocol) 46 48 47 49 transport.open() … … 208 210 209 211 if ids.elements.length > 0 210 212 211 213 doc_list = @thrudoc.getList( create_doc_list(ids.elements) ) 212 214 bms = [] … … 230 232 231 233 ids.each{ |id| 232 doc = Element.new()234 doc = Thrudoc::Element.new() 233 235 doc.bucket = THRUDOC_BUCKET 234 236 doc.key = id.key
