Module: WhackANode::Whacky

Defined in:
lib/whack_a_node/whacky.rb

Instance Method Summary collapse

Instance Method Details

#initialize(path = "/", host = "localhost", port = "8810") ⇒ Object



3
4
5
6
7
# File 'lib/whack_a_node/whacky.rb', line 3

def initialize(path="/",host="localhost", port="8810")
  @path = path
  @host = host
  @port = port
end

#uriObject



9
10
11
# File 'lib/whack_a_node/whacky.rb', line 9

def uri
  URI("http://#{@host}:#{@port}#{@path}")
end