Class: RubyGPG2::UserID
- Inherits:
-
Object
- Object
- RubyGPG2::UserID
- Defined in:
- lib/ruby_gpg2/user_id.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#creation_date ⇒ Object
readonly
Returns the value of attribute creation_date.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#expiration_date ⇒ Object
readonly
Returns the value of attribute expiration_date.
-
#hash ⇒ Object
readonly
Returns the value of attribute hash.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#validity ⇒ Object
readonly
Returns the value of attribute validity.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(opts) ⇒ UserID
constructor
A new instance of UserID.
Constructor Details
#initialize(opts) ⇒ UserID
Returns a new instance of UserID.
13 14 15 16 17 18 19 20 21 22 |
# 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 |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
3 4 5 |
# File 'lib/ruby_gpg2/user_id.rb', line 3 def comment @comment end |
#creation_date ⇒ Object (readonly)
Returns the value of attribute creation_date.
3 4 5 |
# File 'lib/ruby_gpg2/user_id.rb', line 3 def creation_date @creation_date end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/ruby_gpg2/user_id.rb', line 3 def email @email end |
#expiration_date ⇒ Object (readonly)
Returns the value of attribute expiration_date.
3 4 5 |
# File 'lib/ruby_gpg2/user_id.rb', line 3 def expiration_date @expiration_date end |
#hash ⇒ Object (readonly)
Returns the value of attribute hash.
3 4 5 |
# File 'lib/ruby_gpg2/user_id.rb', line 3 def hash @hash end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/ruby_gpg2/user_id.rb', line 3 def name @name end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
3 4 5 |
# File 'lib/ruby_gpg2/user_id.rb', line 3 def origin @origin end |
#validity ⇒ Object (readonly)
Returns the value of attribute validity.
3 4 5 |
# File 'lib/ruby_gpg2/user_id.rb', line 3 def validity @validity end |
Instance Method Details
#==(other) ⇒ Object
24 25 26 |
# File 'lib/ruby_gpg2/user_id.rb', line 24 def ==(other) other.class == self.class && other.state == state end |