Sha256: 6fb688cbf7a621b0afe15eb551c45b4670f7358270def138a71e285483880d62

Contents?: true

Size: 778 Bytes

Versions: 11

Compression:

Stored size: 778 Bytes

Contents

module Access
  class User
    include Access::MuchMeta

    def self.process_batch(chunk)
      chunk.map { |user| new(user) }
    end

    def initialize(values)
      @used_fields = []
      set_up_methods(values)
      set_values(values)
    end

    def self.register(options = {})
      Access::Api.new.user_registration options
    end

    def self.update(options = {})
      Access::Api.new.user_update options
    end

    def self.authenticate(options = {})
      Access::Api.new.user_authentication options
    end

    def self.authenticate_by_cvt(options = {})
      Access::Api.new.user_authentication_by_cvt options
    end

    def self.authenticate_by_member_key(options = {})
      Access::Api.new.user_authentication_by_member_key options
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
access-2.1.5 lib/access/user.rb
access-2.1.4 lib/access/user.rb
access-2.1.3 lib/access/user.rb
access-2.1.2 lib/access/user.rb
access-2.1.1 lib/access/user.rb
access-2.1.0 lib/access/user.rb
access-2.0.55 lib/access/user.rb
access-2.0.54 lib/access/user.rb
access-2.0.53 lib/access/user.rb
access-2.0.52 lib/access/user.rb
access-2.0.51 lib/access/user.rb