Class: Pluggy::Resources::ConnectorHealth
- Inherits:
-
APIResource
- Object
- PluggyObject
- APIResource
- Pluggy::Resources::ConnectorHealth
- Defined in:
- lib/pluggy/resources/connector.rb
Overview
Only populated when the request passed healthDetails: true, and may itself
be null. status is documented in prose as ONLINE/OFFLINE/UNSTABLE but
declared as a free string.
Constant Summary
Constants inherited from PluggyObject
PluggyObject::ISO8601, PluggyObject::RESERVED, PluggyObject::TEMPORAL_KEYS
Instance Attribute Summary
Attributes inherited from PluggyObject
Instance Method Summary collapse
Methods inherited from PluggyObject
#==, #[], #as_json, declared_fields, define_field, #each_pair, fields, #hash, #initialize, #inspect, #key?, #keys, #method_missing, nested, nested_types, #read, #respond_to_missing?, #to_h, #to_json, #values
Constructor Details
This class inherits a constructor from Pluggy::PluggyObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Pluggy::PluggyObject
Instance Method Details
#offline? ⇒ Boolean
43 |
# File 'lib/pluggy/resources/connector.rb', line 43 def offline? = self["status"] == "OFFLINE" |
#online? ⇒ Boolean
42 |
# File 'lib/pluggy/resources/connector.rb', line 42 def online? = self["status"] == "ONLINE" |
#unstable? ⇒ Boolean
44 |
# File 'lib/pluggy/resources/connector.rb', line 44 def unstable? = self["status"] == "UNSTABLE" |