Sha256: 5c3ad9136df27e4ae03611996ce788e82755a75e4aedb6318e176776f935607c

Contents?: true

Size: 812 Bytes

Versions: 35

Compression:

Stored size: 812 Bytes

Contents

module RubyGPG2
  class UserID
    attr_reader(
        :name,
        :comment,
        :email,
        :validity,
        :creation_date,
        :expiration_date,
        :hash,
        :origin)

    def initialize(opts)
      @name = opts[:name]
      @comment = opts[:comment]
      @email = opts[:email]
      @validity = opts[:validity]
      @creation_date = opts[:creation_date]
      @expiration_date = opts[:expiration_date]
      @hash = opts[:hash]
      @origin = opts[:origin]
    end

    def ==(other)
      other.class == self.class && other.state == state
    end

    protected

    def state
      [
          @name,
          @comment,
          @email,
          @validity,
          @creation_date,
          @expiration_date,
          @hash,
          @origin
      ]
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ruby_gpg2-0.9.0.pre.6 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.9.0.pre.5 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.9.0.pre.4 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.9.0.pre.3 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.9.0.pre.2 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.9.0.pre.1 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.8.0 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.7.0.pre.1 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.6.0 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.5.0.pre.1 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.4.0 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.3.0.pre.2 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.3.0.pre.1 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.2.0 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.1.0.pre.27 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.1.0.pre.26 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.1.0.pre.25 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.1.0.pre.24 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.1.0.pre.23 lib/ruby_gpg2/user_id.rb
ruby_gpg2-0.1.0.pre.22 lib/ruby_gpg2/user_id.rb