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