class Osso::GraphQL::Mutations::CreateOauthClient
Public Instance Methods
ready?(*)
click to toggle source
# File lib/osso/graphql/mutations/create_oauth_client.rb, line 25 def ready?(*) admin_ready? end
resolve(**args)
click to toggle source
# File lib/osso/graphql/mutations/create_oauth_client.rb, line 14 def resolve(**args) oauth_client = Osso::Models::OauthClient.new(args) if oauth_client.save Osso::Analytics.capture(email: context[:email], event: self.class.name.demodulize, properties: args) return response_data(oauth_client: oauth_client) end response_error(oauth_client.errors) end