Sha256: 733676f4b8743b3456fd108749a8514dfe045c343573748a43873a12e8f8712a

Contents?: true

Size: 551 Bytes

Versions: 5

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true
class Cognito
  class Client
    class Command
      class CreateProfile < self
        include Mixins::CreateBehavior, Concord.new(:connection)

        ENDPOINT = '/profiles'
        PARAMS   = IceNine.deep_freeze(data: { type: 'profile' })

        private

        def present_response
          Response::Profile.build(response, connection)
        end

        # ignores :reek:UtilityFunction:
        def params
          PARAMS
        end
      end # CreateProfile
    end # Command
  end # Client
end # Cognito

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cognito-client-0.5.4 lib/cognito/client/commands/create_profile.rb
cognito-client-0.5.3 lib/cognito/client/commands/create_profile.rb
cognito-client-0.5.2 lib/cognito/client/commands/create_profile.rb
cognito-client-0.5.1 lib/cognito/client/commands/create_profile.rb
cognito-client-0.5.0 lib/cognito/client/commands/create_profile.rb