Sha256: 90c5af756059306781efd8351e1eb350e0d5a3548b46a4250b3efaa9bbdbb2bd

Contents?: true

Size: 551 Bytes

Versions: 14

Compression:

Stored size: 551 Bytes

Contents

module Access
  class Member

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

    def initialize(values)
      self.class.class_eval {attr_reader *values.keys }
      values.each do |attribute_name, attribute_value|
        self.instance_variable_set("@#{attribute_name}", attribute_value)
      end
    end

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

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
access-2.0.28 lib/access/member.rb
access-2.0.27 lib/access/member.rb
access-2.0.26 lib/access/member.rb
access-2.0.25 lib/access/member.rb
access-2.0.24 lib/access/member.rb
access-2.0.23 lib/access/member.rb
access-2.0.22 lib/access/member.rb
access-2.0.21 lib/access/member.rb
access-2.0.20 lib/access/member.rb
access-2.0.19 lib/access/member.rb
access-2.0.18 lib/access/member.rb
access-2.0.17 lib/access/member.rb
access-2.0.15 lib/access/member.rb
access-2.0.14 lib/access/member.rb