class RubyGPG2::UserID

Attributes

comment[R]
creation_date[R]
email[R]
expiration_date[R]
hash[R]
name[R]
origin[R]
validity[R]

Public Class Methods

new(opts) click to toggle source
# File lib/ruby_gpg2/user_id.rb, line 13
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

Public Instance Methods

==(other) click to toggle source
# File lib/ruby_gpg2/user_id.rb, line 24
def ==(other)
  other.class == self.class && other.state == state
end

Protected Instance Methods

state() click to toggle source
# File lib/ruby_gpg2/user_id.rb, line 30
def state
  [
      @name,
      @comment,
      @email,
      @validity,
      @creation_date,
      @expiration_date,
      @hash,
      @origin
  ]
end