Class: HookSniff::Client
- Inherits:
-
Object
- Object
- HookSniff::Client
- Defined in:
- lib/hooksniff.rb,
lib/hooksniff/hooksniff.rb
Instance Attribute Summary collapse
-
#alert ⇒ Object
Returns the value of attribute alert.
-
#analytics ⇒ Object
Returns the value of attribute analytics.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#application ⇒ Object
Additional resources.
-
#audit_log ⇒ Object
Returns the value of attribute audit_log.
-
#authentication ⇒ Object
Original resources.
-
#background_task ⇒ Object
Returns the value of attribute background_task.
-
#billing ⇒ Object
Returns the value of attribute billing.
-
#connector ⇒ Object
Returns the value of attribute connector.
-
#custom_domain ⇒ Object
Returns the value of attribute custom_domain.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#environment ⇒ Object
Faz 8-15 resources.
-
#event_type ⇒ Object
Returns the value of attribute event_type.
-
#health ⇒ Object
Returns the value of attribute health.
-
#inbound ⇒ Object
Returns the value of attribute inbound.
-
#integration ⇒ Object
Returns the value of attribute integration.
-
#message ⇒ Object
Returns the value of attribute message.
-
#message_attempt ⇒ Object
Returns the value of attribute message_attempt.
-
#message_poller ⇒ Object
Returns the value of attribute message_poller.
-
#notification ⇒ Object
Returns the value of attribute notification.
-
#operational_webhook ⇒ Object
Returns the value of attribute operational_webhook.
-
#playground ⇒ Object
Returns the value of attribute playground.
-
#portal ⇒ Object
Returns the value of attribute portal.
-
#rate_limit ⇒ Object
Returns the value of attribute rate_limit.
-
#routing ⇒ Object
Returns the value of attribute routing.
-
#schema ⇒ Object
Returns the value of attribute schema.
-
#search ⇒ Object
Returns the value of attribute search.
-
#service_token ⇒ Object
Returns the value of attribute service_token.
-
#sso ⇒ Object
Returns the value of attribute sso.
-
#statistics ⇒ Object
Returns the value of attribute statistics.
-
#stream ⇒ Object
Returns the value of attribute stream.
-
#team ⇒ Object
Returns the value of attribute team.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(auth_token, options = HookSniffOptions.new) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(auth_token, options = HookSniffOptions.new) ⇒ Client
Returns a new instance of Client.
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/hooksniff.rb', line 103 def initialize(auth_token, = HookSniffOptions.new) uri = URI(.server_url || "https://hooksniff-api-1046140057667.europe-west1.run.app") api_client = HookSniffHttpClient.new(auth_token, uri) # Original @authentication = Authentication.new(api_client) @endpoint = Endpoint.new(api_client) @event_type = EventType.new(api_client) @health = Health.new(api_client) @message = Message.new(api_client) @message_attempt = MessageAttempt.new(api_client) @statistics = Statistics.new(api_client) # Faz 8-15 @environment = Environment.new(api_client) @background_task = BackgroundTask.new(api_client) @operational_webhook = OperationalWebhook.new(api_client) @message_poller = MessagePoller.new(api_client) @inbound = Inbound.new(api_client) @connector = Connector.new(api_client) @integration = IntegrationApi.new(api_client) @stream = StreamApi.new(api_client) # Additional @application = Application.new(api_client) @api_key = ApiKey.new(api_client) @search = Search.new(api_client) @alert = Alert.new(api_client) @analytics = Analytics.new(api_client) @billing = Billing.new(api_client) @portal = Portal.new(api_client) @team = Team.new(api_client) @notification = Notification.new(api_client) @sso = Sso.new(api_client) @audit_log = AuditLog.new(api_client) @custom_domain = CustomDomain.new(api_client) @rate_limit = RateLimit.new(api_client) @routing = Routing.new(api_client) @template = Template.new(api_client) @schema = Schema.new(api_client) @playground = Playground.new(api_client) @service_token = ServiceToken.new(api_client) end |
Instance Attribute Details
#alert ⇒ Object
Returns the value of attribute alert.
87 88 89 |
# File 'lib/hooksniff.rb', line 87 def alert @alert end |
#analytics ⇒ Object
Returns the value of attribute analytics.
88 89 90 |
# File 'lib/hooksniff.rb', line 88 def analytics @analytics end |
#api_key ⇒ Object
Returns the value of attribute api_key.
85 86 87 |
# File 'lib/hooksniff.rb', line 85 def api_key @api_key end |
#application ⇒ Object
Additional resources
84 85 86 |
# File 'lib/hooksniff.rb', line 84 def application @application end |
#audit_log ⇒ Object
Returns the value of attribute audit_log.
94 95 96 |
# File 'lib/hooksniff.rb', line 94 def audit_log @audit_log end |
#authentication ⇒ Object
Original resources
65 66 67 |
# File 'lib/hooksniff.rb', line 65 def authentication @authentication end |
#background_task ⇒ Object
Returns the value of attribute background_task.
75 76 77 |
# File 'lib/hooksniff.rb', line 75 def background_task @background_task end |
#billing ⇒ Object
Returns the value of attribute billing.
89 90 91 |
# File 'lib/hooksniff.rb', line 89 def billing @billing end |
#connector ⇒ Object
Returns the value of attribute connector.
79 80 81 |
# File 'lib/hooksniff.rb', line 79 def connector @connector end |
#custom_domain ⇒ Object
Returns the value of attribute custom_domain.
95 96 97 |
# File 'lib/hooksniff.rb', line 95 def custom_domain @custom_domain end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
66 67 68 |
# File 'lib/hooksniff.rb', line 66 def endpoint @endpoint end |
#environment ⇒ Object
Faz 8-15 resources
74 75 76 |
# File 'lib/hooksniff.rb', line 74 def environment @environment end |
#event_type ⇒ Object
Returns the value of attribute event_type.
67 68 69 |
# File 'lib/hooksniff.rb', line 67 def event_type @event_type end |
#health ⇒ Object
Returns the value of attribute health.
68 69 70 |
# File 'lib/hooksniff.rb', line 68 def health @health end |
#inbound ⇒ Object
Returns the value of attribute inbound.
78 79 80 |
# File 'lib/hooksniff.rb', line 78 def inbound @inbound end |
#integration ⇒ Object
Returns the value of attribute integration.
80 81 82 |
# File 'lib/hooksniff.rb', line 80 def integration @integration end |
#message ⇒ Object
Returns the value of attribute message.
69 70 71 |
# File 'lib/hooksniff.rb', line 69 def @message end |
#message_attempt ⇒ Object
Returns the value of attribute message_attempt.
70 71 72 |
# File 'lib/hooksniff.rb', line 70 def @message_attempt end |
#message_poller ⇒ Object
Returns the value of attribute message_poller.
77 78 79 |
# File 'lib/hooksniff.rb', line 77 def @message_poller end |
#notification ⇒ Object
Returns the value of attribute notification.
92 93 94 |
# File 'lib/hooksniff.rb', line 92 def notification @notification end |
#operational_webhook ⇒ Object
Returns the value of attribute operational_webhook.
76 77 78 |
# File 'lib/hooksniff.rb', line 76 def operational_webhook @operational_webhook end |
#playground ⇒ Object
Returns the value of attribute playground.
100 101 102 |
# File 'lib/hooksniff.rb', line 100 def playground @playground end |
#portal ⇒ Object
Returns the value of attribute portal.
90 91 92 |
# File 'lib/hooksniff.rb', line 90 def portal @portal end |
#rate_limit ⇒ Object
Returns the value of attribute rate_limit.
96 97 98 |
# File 'lib/hooksniff.rb', line 96 def rate_limit @rate_limit end |
#routing ⇒ Object
Returns the value of attribute routing.
97 98 99 |
# File 'lib/hooksniff.rb', line 97 def routing @routing end |
#schema ⇒ Object
Returns the value of attribute schema.
99 100 101 |
# File 'lib/hooksniff.rb', line 99 def schema @schema end |
#search ⇒ Object
Returns the value of attribute search.
86 87 88 |
# File 'lib/hooksniff.rb', line 86 def search @search end |
#service_token ⇒ Object
Returns the value of attribute service_token.
101 102 103 |
# File 'lib/hooksniff.rb', line 101 def service_token @service_token end |
#sso ⇒ Object
Returns the value of attribute sso.
93 94 95 |
# File 'lib/hooksniff.rb', line 93 def sso @sso end |
#statistics ⇒ Object
Returns the value of attribute statistics.
71 72 73 |
# File 'lib/hooksniff.rb', line 71 def statistics @statistics end |
#stream ⇒ Object
Returns the value of attribute stream.
81 82 83 |
# File 'lib/hooksniff.rb', line 81 def stream @stream end |
#team ⇒ Object
Returns the value of attribute team.
91 92 93 |
# File 'lib/hooksniff.rb', line 91 def team @team end |
#template ⇒ Object
Returns the value of attribute template.
98 99 100 |
# File 'lib/hooksniff.rb', line 98 def template @template end |