Class: EventMachine::Couchdb::Base
- Inherits:
-
Object
- Object
- EventMachine::Couchdb::Base
- Defined in:
- lib/em-couchdb-request/base.rb
Constant Summary collapse
- REQUEST_OPTIONS =
{ :head => { 'content-type' => 'application/json' } }
Instance Attribute Summary collapse
-
#connect_options ⇒ Object
readonly
Returns the value of attribute connect_options.
-
#request_options ⇒ Object
readonly
Returns the value of attribute request_options.
Instance Method Summary collapse
Instance Attribute Details
#connect_options ⇒ Object (readonly)
Returns the value of attribute connect_options.
6 7 8 |
# File 'lib/em-couchdb-request/base.rb', line 6 def @connect_options end |
#request_options ⇒ Object (readonly)
Returns the value of attribute request_options.
6 7 8 |
# File 'lib/em-couchdb-request/base.rb', line 6 def @request_options end |
Instance Method Details
#log(msg, start_at = Time.now) ⇒ Object
14 15 16 17 |
# File 'lib/em-couchdb-request/base.rb', line 14 def log(msg, start_at=Time.now) span = "%8.2f" % ((Time.now - start_at) * 1000) puts "#{Time.now.strftime("%X")}\t#{span}\t#{msg}" end |