Class: Nimbo::Client
- Inherits:
-
Object
- Object
- Nimbo::Client
- Defined in:
- lib/nimbo/client.rb
Defined Under Namespace
Classes: Suite
Instance Attribute Summary collapse
-
#service_url ⇒ Object
Returns the value of attribute service_url.
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #send(suite) ⇒ Object
Constructor Details
#initialize ⇒ Client
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_url ⇒ Object
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 |