Class: ClerkHttpClient::SDK
- Inherits:
-
Object
- Object
- ClerkHttpClient::SDK
- Defined in:
- lib/clerk-http-client.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
- #actortokensapi ⇒ Object
- #allowlistblocklistapi ⇒ Object
- #betafeaturesapi ⇒ Object
- #clientsapi ⇒ Object
- #domainsapi ⇒ Object
- #emailaddressesapi ⇒ Object
- #emailsmstemplatesapi ⇒ Object
-
#initialize(config = Configuration.default) ⇒ SDK
constructor
A new instance of SDK.
- #instancesettingsapi ⇒ Object
- #invitationsapi ⇒ Object
- #jwksapi ⇒ Object
- #jwttemplatesapi ⇒ Object
- #miscellaneousapi ⇒ Object
- #oauthapplicationsapi ⇒ Object
- #organizationdomainapi ⇒ Object
- #organizationdomainsapi ⇒ Object
- #organizationinvitationsapi ⇒ Object
- #organizationmembershipsapi ⇒ Object
- #organizationsapi ⇒ Object
- #phonenumbersapi ⇒ Object
- #proxychecksapi ⇒ Object
- #redirecturlsapi ⇒ Object
- #samlconnectionsapi ⇒ Object
- #sessionsapi ⇒ Object
- #signintokensapi ⇒ Object
- #signupsapi ⇒ Object
- #testingtokensapi ⇒ Object
- #usersapi ⇒ Object
- #webhooksapi ⇒ Object
Constructor Details
#initialize(config = Configuration.default) ⇒ SDK
196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/clerk-http-client.rb', line 196 def initialize(config = Configuration.default) @config = config api_suffix = 'api' methods.each do |m| next unless m.end_with?(api_suffix) alias_name = m.to_s.delete_suffix(api_suffix) self.class.send(:alias_method, alias_name.to_sym, m) end end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
194 195 196 |
# File 'lib/clerk-http-client.rb', line 194 def config @config end |
Instance Method Details
#actortokensapi ⇒ Object
208 209 210 |
# File 'lib/clerk-http-client.rb', line 208 def actortokensapi ClerkHttpClient::ActorTokensApi.new end |
#allowlistblocklistapi ⇒ Object
212 213 214 |
# File 'lib/clerk-http-client.rb', line 212 def allowlistblocklistapi ClerkHttpClient::AllowListBlockListApi.new end |
#betafeaturesapi ⇒ Object
216 217 218 |
# File 'lib/clerk-http-client.rb', line 216 def betafeaturesapi ClerkHttpClient::BetaFeaturesApi.new end |
#clientsapi ⇒ Object
220 221 222 |
# File 'lib/clerk-http-client.rb', line 220 def clientsapi ClerkHttpClient::ClientsApi.new end |
#domainsapi ⇒ Object
224 225 226 |
# File 'lib/clerk-http-client.rb', line 224 def domainsapi ClerkHttpClient::DomainsApi.new end |
#emailaddressesapi ⇒ Object
228 229 230 |
# File 'lib/clerk-http-client.rb', line 228 def emailaddressesapi ClerkHttpClient::EmailAddressesApi.new end |
#emailsmstemplatesapi ⇒ Object
232 233 234 |
# File 'lib/clerk-http-client.rb', line 232 def emailsmstemplatesapi ClerkHttpClient::EmailSMSTemplatesApi.new end |
#instancesettingsapi ⇒ Object
236 237 238 |
# File 'lib/clerk-http-client.rb', line 236 def instancesettingsapi ClerkHttpClient::InstanceSettingsApi.new end |
#invitationsapi ⇒ Object
240 241 242 |
# File 'lib/clerk-http-client.rb', line 240 def invitationsapi ClerkHttpClient::InvitationsApi.new end |
#jwksapi ⇒ Object
244 245 246 |
# File 'lib/clerk-http-client.rb', line 244 def jwksapi ClerkHttpClient::JWKSApi.new end |
#jwttemplatesapi ⇒ Object
248 249 250 |
# File 'lib/clerk-http-client.rb', line 248 def jwttemplatesapi ClerkHttpClient::JWTTemplatesApi.new end |
#miscellaneousapi ⇒ Object
252 253 254 |
# File 'lib/clerk-http-client.rb', line 252 def miscellaneousapi ClerkHttpClient::MiscellaneousApi.new end |
#oauthapplicationsapi ⇒ Object
256 257 258 |
# File 'lib/clerk-http-client.rb', line 256 def oauthapplicationsapi ClerkHttpClient::OAuthApplicationsApi.new end |
#organizationdomainapi ⇒ Object
260 261 262 |
# File 'lib/clerk-http-client.rb', line 260 def organizationdomainapi ClerkHttpClient::OrganizationDomainApi.new end |
#organizationdomainsapi ⇒ Object
264 265 266 |
# File 'lib/clerk-http-client.rb', line 264 def organizationdomainsapi ClerkHttpClient::OrganizationDomainsApi.new end |
#organizationinvitationsapi ⇒ Object
268 269 270 |
# File 'lib/clerk-http-client.rb', line 268 def organizationinvitationsapi ClerkHttpClient::OrganizationInvitationsApi.new end |
#organizationmembershipsapi ⇒ Object
272 273 274 |
# File 'lib/clerk-http-client.rb', line 272 def organizationmembershipsapi ClerkHttpClient::OrganizationMembershipsApi.new end |
#organizationsapi ⇒ Object
276 277 278 |
# File 'lib/clerk-http-client.rb', line 276 def organizationsapi ClerkHttpClient::OrganizationsApi.new end |
#phonenumbersapi ⇒ Object
280 281 282 |
# File 'lib/clerk-http-client.rb', line 280 def phonenumbersapi ClerkHttpClient::PhoneNumbersApi.new end |
#proxychecksapi ⇒ Object
284 285 286 |
# File 'lib/clerk-http-client.rb', line 284 def proxychecksapi ClerkHttpClient::ProxyChecksApi.new end |
#redirecturlsapi ⇒ Object
288 289 290 |
# File 'lib/clerk-http-client.rb', line 288 def redirecturlsapi ClerkHttpClient::RedirectURLsApi.new end |
#samlconnectionsapi ⇒ Object
292 293 294 |
# File 'lib/clerk-http-client.rb', line 292 def samlconnectionsapi ClerkHttpClient::SAMLConnectionsApi.new end |
#sessionsapi ⇒ Object
296 297 298 |
# File 'lib/clerk-http-client.rb', line 296 def sessionsapi ClerkHttpClient::SessionsApi.new end |
#signintokensapi ⇒ Object
300 301 302 |
# File 'lib/clerk-http-client.rb', line 300 def signintokensapi ClerkHttpClient::SignInTokensApi.new end |
#signupsapi ⇒ Object
304 305 306 |
# File 'lib/clerk-http-client.rb', line 304 def signupsapi ClerkHttpClient::SignUpsApi.new end |
#testingtokensapi ⇒ Object
308 309 310 |
# File 'lib/clerk-http-client.rb', line 308 def testingtokensapi ClerkHttpClient::TestingTokensApi.new end |
#usersapi ⇒ Object
312 313 314 |
# File 'lib/clerk-http-client.rb', line 312 def usersapi ClerkHttpClient::UsersApi.new end |
#webhooksapi ⇒ Object
316 317 318 |
# File 'lib/clerk-http-client.rb', line 316 def webhooksapi ClerkHttpClient::WebhooksApi.new end |