Class: Synthetics::API
- Inherits:
-
Object
- Object
- Synthetics::API
- Defined in:
- lib/synthetics/api.rb,
lib/synthetics/api/base.rb,
lib/synthetics/api/label.rb,
lib/synthetics/api/labels.rb,
lib/synthetics/api/monitor.rb,
lib/synthetics/api/monitors.rb,
lib/synthetics/api/locations.rb
Overview
This class holds the sub APIs used to communicate with synthetics.
Defined Under Namespace
Classes: Base, Label, Labels, Locations, Monitor, Monitors
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client) ⇒ API
constructor
A new instance of API.
- #label(label) ⇒ Object
- #labels ⇒ Object
- #locations ⇒ Object
- #monitor(monitor_uuid) ⇒ Object
- #monitors ⇒ Object
Constructor Details
#initialize(client) ⇒ API
Returns a new instance of API.
13 14 15 |
# File 'lib/synthetics/api.rb', line 13 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
11 12 13 |
# File 'lib/synthetics/api.rb', line 11 def client @client end |
Instance Method Details
#label(label) ⇒ Object
17 18 19 |
# File 'lib/synthetics/api.rb', line 17 def label(label) Label.new(client, label) end |
#locations ⇒ Object
25 26 27 |
# File 'lib/synthetics/api.rb', line 25 def locations Locations.new(client) end |