Module: Couchdb
- Defined in:
- lib/likethat.rb
Overview
require json
Class Attribute Summary collapse
-
.port ⇒ Object
Returns the value of attribute port.
-
.url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Class Attribute Details
.port ⇒ Object
Returns the value of attribute port.
28 29 30 |
# File 'lib/likethat.rb', line 28 def port @port end |
.url ⇒ Object
Returns the value of attribute url.
27 28 29 |
# File 'lib/likethat.rb', line 27 def url @url end |
Class Method Details
.get ⇒ Object
7 8 9 |
# File 'lib/likethat.rb', line 7 def self.get() puts 'like that! like that!' end |
.go ⇒ Object
15 16 17 |
# File 'lib/likethat.rb', line 15 def self.go() puts 'hey hoo hey hoo' end |
.go_south ⇒ Object
30 31 32 33 34 35 |
# File 'lib/likethat.rb', line 30 def go_south() if @url == nil && port == nil @url = 'localhost' @port = '5984' end end |
.put ⇒ Object
11 12 13 |
# File 'lib/likethat.rb', line 11 def self.put() puts 'here we get near, yeah! yeah!' end |
.web ⇒ Object
19 20 21 22 |
# File 'lib/likethat.rb', line 19 def self.web() go_south() puts 'http://'+ @url + ':' + @port + '/' end |