Sha256: 7189fef711096dc468881641fdac411e0a1b7b6760903984fcd68f3e4325e638

Contents?: true

Size: 699 Bytes

Versions: 1

Compression:

Stored size: 699 Bytes

Contents

# frozen_string_literal: true

require 'graphql'

module Osso
  module GraphQL
    module Types
      class EnterpriseAccount < Types::BaseObject
        description 'An Account for a company that wishes to use SAML via Osso'
        implements ::GraphQL::Types::Relay::Node

        global_id_field :gid
        field :id, ID, null: false
        field :name, String, null: false
        field :domain, String, null: false
        field :identity_providers, [Types::IdentityProvider], null: true
        field :status, String, null: false

        def status
          'active'
        end

        def identity_providers
          object.identity_providers
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
osso-0.0.3.6 lib/osso/graphql/types/enterprise_account.rb