Module: Couchdb

Defined in:
lib/likethat.rb

Overview

require json

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.portObject

Returns the value of attribute port.



28
29
30
# File 'lib/likethat.rb', line 28

def port
  @port
end

.urlObject

Returns the value of attribute url.



27
28
29
# File 'lib/likethat.rb', line 27

def url
  @url
end

Class Method Details

.getObject



7
8
9
# File 'lib/likethat.rb', line 7

def self.get()
    puts 'like that! like that!'
end

.goObject



15
16
17
# File 'lib/likethat.rb', line 15

def self.go()
  puts 'hey hoo hey hoo'
end

.go_southObject



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

.putObject



11
12
13
# File 'lib/likethat.rb', line 11

def self.put()
   puts 'here we get near, yeah! yeah!'
end

.webObject



19
20
21
22
# File 'lib/likethat.rb', line 19

def self.web()
   go_south()
   puts 'http://'+ @url + ':' + @port + '/'
end