Class: HookSniff::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/hooksniff.rb,
lib/hooksniff/hooksniff.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = HookSniffOptions.new)
  uri = URI(options.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

#alertObject

Returns the value of attribute alert.



87
88
89
# File 'lib/hooksniff.rb', line 87

def alert
  @alert
end

#analyticsObject

Returns the value of attribute analytics.



88
89
90
# File 'lib/hooksniff.rb', line 88

def analytics
  @analytics
end

#api_keyObject

Returns the value of attribute api_key.



85
86
87
# File 'lib/hooksniff.rb', line 85

def api_key
  @api_key
end

#applicationObject

Additional resources



84
85
86
# File 'lib/hooksniff.rb', line 84

def application
  @application
end

#audit_logObject

Returns the value of attribute audit_log.



94
95
96
# File 'lib/hooksniff.rb', line 94

def audit_log
  @audit_log
end

#authenticationObject

Original resources



65
66
67
# File 'lib/hooksniff.rb', line 65

def authentication
  @authentication
end

#background_taskObject

Returns the value of attribute background_task.



75
76
77
# File 'lib/hooksniff.rb', line 75

def background_task
  @background_task
end

#billingObject

Returns the value of attribute billing.



89
90
91
# File 'lib/hooksniff.rb', line 89

def billing
  @billing
end

#connectorObject

Returns the value of attribute connector.



79
80
81
# File 'lib/hooksniff.rb', line 79

def connector
  @connector
end

#custom_domainObject

Returns the value of attribute custom_domain.



95
96
97
# File 'lib/hooksniff.rb', line 95

def custom_domain
  @custom_domain
end

#endpointObject

Returns the value of attribute endpoint.



66
67
68
# File 'lib/hooksniff.rb', line 66

def endpoint
  @endpoint
end

#environmentObject

Faz 8-15 resources



74
75
76
# File 'lib/hooksniff.rb', line 74

def environment
  @environment
end

#event_typeObject

Returns the value of attribute event_type.



67
68
69
# File 'lib/hooksniff.rb', line 67

def event_type
  @event_type
end

#healthObject

Returns the value of attribute health.



68
69
70
# File 'lib/hooksniff.rb', line 68

def health
  @health
end

#inboundObject

Returns the value of attribute inbound.



78
79
80
# File 'lib/hooksniff.rb', line 78

def inbound
  @inbound
end

#integrationObject

Returns the value of attribute integration.



80
81
82
# File 'lib/hooksniff.rb', line 80

def integration
  @integration
end

#messageObject

Returns the value of attribute message.



69
70
71
# File 'lib/hooksniff.rb', line 69

def message
  @message
end

#message_attemptObject

Returns the value of attribute message_attempt.



70
71
72
# File 'lib/hooksniff.rb', line 70

def message_attempt
  @message_attempt
end

#message_pollerObject

Returns the value of attribute message_poller.



77
78
79
# File 'lib/hooksniff.rb', line 77

def message_poller
  @message_poller
end

#notificationObject

Returns the value of attribute notification.



92
93
94
# File 'lib/hooksniff.rb', line 92

def notification
  @notification
end

#operational_webhookObject

Returns the value of attribute operational_webhook.



76
77
78
# File 'lib/hooksniff.rb', line 76

def operational_webhook
  @operational_webhook
end

#playgroundObject

Returns the value of attribute playground.



100
101
102
# File 'lib/hooksniff.rb', line 100

def playground
  @playground
end

#portalObject

Returns the value of attribute portal.



90
91
92
# File 'lib/hooksniff.rb', line 90

def portal
  @portal
end

#rate_limitObject

Returns the value of attribute rate_limit.



96
97
98
# File 'lib/hooksniff.rb', line 96

def rate_limit
  @rate_limit
end

#routingObject

Returns the value of attribute routing.



97
98
99
# File 'lib/hooksniff.rb', line 97

def routing
  @routing
end

#schemaObject

Returns the value of attribute schema.



99
100
101
# File 'lib/hooksniff.rb', line 99

def schema
  @schema
end

#searchObject

Returns the value of attribute search.



86
87
88
# File 'lib/hooksniff.rb', line 86

def search
  @search
end

#service_tokenObject

Returns the value of attribute service_token.



101
102
103
# File 'lib/hooksniff.rb', line 101

def service_token
  @service_token
end

#ssoObject

Returns the value of attribute sso.



93
94
95
# File 'lib/hooksniff.rb', line 93

def sso
  @sso
end

#statisticsObject

Returns the value of attribute statistics.



71
72
73
# File 'lib/hooksniff.rb', line 71

def statistics
  @statistics
end

#streamObject

Returns the value of attribute stream.



81
82
83
# File 'lib/hooksniff.rb', line 81

def stream
  @stream
end

#teamObject

Returns the value of attribute team.



91
92
93
# File 'lib/hooksniff.rb', line 91

def team
  @team
end

#templateObject

Returns the value of attribute template.



98
99
100
# File 'lib/hooksniff.rb', line 98

def template
  @template
end