Class: Nimbo::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/nimbo/client.rb

Defined Under Namespace

Classes: Suite

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.



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

def initialize
  @service_url = 'http://nimbolab.com:3000/test'
end

Instance Attribute Details

#service_urlObject

Returns the value of attribute service_url.



5
6
7
# File 'lib/nimbo/client.rb', line 5

def service_url
  @service_url
end

Instance Method Details

#send(suite) ⇒ Object



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

def send(suite)
  RestClient.post @service_url, :suite_archive => File.new(suite.archive, 'a+')
end