Class: TestSwarm::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Client

Returns a new instance of Client


19
20
21
# File 'lib/testswarm/client.rb', line 19

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url


17
18
19
# File 'lib/testswarm/client.rb', line 17

def url
  @url
end

Instance Method Details

#project(name, options = {}) ⇒ Object


23
24
25
# File 'lib/testswarm/client.rb', line 23

def project(name, options = {})
  Project.new(self, name, options)
end

#uriObject


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

def uri
  @uri ||= URI.parse(@url)
end