Class: TestSwarm::Client
- Inherits:
-
Object
- Object
- TestSwarm::Client
- Defined in:
- lib/testswarm/client.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Client
constructor
A new instance of Client.
- #project(name, options = {}) ⇒ Object
- #uri ⇒ Object
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
#url ⇒ Object (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, = {}) Project.new(self, name, ) end |
#uri ⇒ Object
27 28 29 |
# File 'lib/testswarm/client.rb', line 27 def uri @uri ||= URI.parse(@url) end |