Class: Certynix::Client
- Inherits:
-
Object
- Object
- Certynix::Client
- Defined in:
- lib/certynix/client.rb
Instance Attribute Summary collapse
-
#alerts ⇒ Object
readonly
Returns the value of attribute alerts.
-
#api_keys ⇒ Object
readonly
Returns the value of attribute api_keys.
-
#assets ⇒ Object
readonly
Returns the value of attribute assets.
-
#audit_logs ⇒ Object
readonly
Returns the value of attribute audit_logs.
-
#trust_score ⇒ Object
readonly
Returns the value of attribute trust_score.
-
#verify ⇒ Object
readonly
Returns the value of attribute verify.
-
#webhooks ⇒ Object
readonly
Returns the value of attribute webhooks.
Instance Method Summary collapse
-
#initialize(api_key:, base_url: nil, timeout: 30, max_retries: 3, access_token: nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key:, base_url: nil, timeout: 30, max_retries: 3, access_token: nil) ⇒ Client
Returns a new instance of Client.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/certynix/client.rb', line 7 def initialize(api_key:, base_url: nil, timeout: 30, max_retries: 3, access_token: nil) config = Config.new( api_key: api_key, base_url: base_url, timeout: timeout, max_retries: max_retries, access_token: access_token, ) http = HttpClient.new(config) @assets = Resources::Assets.new(http) @verify = Resources::Verify.new(http) @webhooks = Resources::Webhooks.new(http) @api_keys = Resources::ApiKeys.new(http) @alerts = Resources::Alerts.new(http) @audit_logs = Resources::AuditLogs.new(http) @trust_score = Resources::TrustScore.new(http) end |
Instance Attribute Details
#alerts ⇒ Object (readonly)
Returns the value of attribute alerts.
5 6 7 |
# File 'lib/certynix/client.rb', line 5 def alerts @alerts end |
#api_keys ⇒ Object (readonly)
Returns the value of attribute api_keys.
5 6 7 |
# File 'lib/certynix/client.rb', line 5 def api_keys @api_keys end |
#assets ⇒ Object (readonly)
Returns the value of attribute assets.
5 6 7 |
# File 'lib/certynix/client.rb', line 5 def assets @assets end |
#audit_logs ⇒ Object (readonly)
Returns the value of attribute audit_logs.
5 6 7 |
# File 'lib/certynix/client.rb', line 5 def audit_logs @audit_logs end |
#trust_score ⇒ Object (readonly)
Returns the value of attribute trust_score.
5 6 7 |
# File 'lib/certynix/client.rb', line 5 def trust_score @trust_score end |
#verify ⇒ Object (readonly)
Returns the value of attribute verify.
5 6 7 |
# File 'lib/certynix/client.rb', line 5 def verify @verify end |
#webhooks ⇒ Object (readonly)
Returns the value of attribute webhooks.
5 6 7 |
# File 'lib/certynix/client.rb', line 5 def webhooks @webhooks end |