Class: AhoSdk::System
- Inherits:
-
Object
- Object
- AhoSdk::System
- Defined in:
- lib/aho_sdk/system.rb
Overview
System health and status endpoints
Defined Under Namespace
Classes: HealthResource
Instance Attribute Summary collapse
- #health ⇒ HealthResource readonly
Instance Method Summary collapse
-
#initialize(api_key:, base_url: "https://api.aho.com", timeout: 30, logger: nil) ⇒ System
constructor
A new instance of System.
Constructor Details
#initialize(api_key:, base_url: "https://api.aho.com", timeout: 30, logger: nil) ⇒ System
Returns a new instance of System.
21 22 23 24 |
# File 'lib/aho_sdk/system.rb', line 21 def initialize(api_key:, base_url: "https://api.aho.com", timeout: 30, logger: nil) @client = HttpClient.new(api_key: api_key, base_url: base_url, timeout: timeout, logger: logger) @health = HealthResource.new(@client) end |
Instance Attribute Details
#health ⇒ HealthResource (readonly)
27 28 29 |
# File 'lib/aho_sdk/system.rb', line 27 def health @health end |