Class: ErroneousAPI::Client
- Inherits:
-
Object
- Object
- ErroneousAPI::Client
- Defined in:
- lib/erroneous-api/client.rb
Defined Under Namespace
Classes: Response
Class Attribute Summary collapse
-
.mock_backend ⇒ Object
Returns the value of attribute mock_backend.
Class Method Summary collapse
Instance Method Summary collapse
- #connection ⇒ Object
-
#initialize(base_url) ⇒ Client
constructor
A new instance of Client.
- #parse_deploy_fail(text) ⇒ Object
Constructor Details
#initialize(base_url) ⇒ Client
Returns a new instance of Client.
6 7 8 |
# File 'lib/erroneous-api/client.rb', line 6 def initialize(base_url) @base_url = base_url end |
Class Attribute Details
.mock_backend ⇒ Object
Returns the value of attribute mock_backend.
11 12 13 |
# File 'lib/erroneous-api/client.rb', line 11 def mock_backend @mock_backend end |
Class Method Details
.mock!(backend) ⇒ Object
14 15 16 |
# File 'lib/erroneous-api/client.rb', line 14 def self.mock!(backend) @mock_backend = backend end |
Instance Method Details
#connection ⇒ Object
18 19 20 |
# File 'lib/erroneous-api/client.rb', line 18 def connection @connection ||= setup_connection end |