Class: PkiExpress::SignaturePolicyIdentifier
- Inherits:
-
Object
- Object
- PkiExpress::SignaturePolicyIdentifier
- Defined in:
- lib/pki_express/signature_policy_identifier.rb
Instance Attribute Summary collapse
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#oid ⇒ Object
Returns the value of attribute oid.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(model) ⇒ SignaturePolicyIdentifier
constructor
A new instance of SignaturePolicyIdentifier.
Constructor Details
#initialize(model) ⇒ SignaturePolicyIdentifier
Returns a new instance of SignaturePolicyIdentifier.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/pki_express/signature_policy_identifier.rb', line 5 def initialize(model) @digest = nil @oid = nil @uri = nil unless model.nil? digest = model.fetch(:digest) unless digest.nil? DigestAlgorithmAndValue.new(digest) end oid = model.fetch(:oid) uri = model.fetch(:uri) end end |
Instance Attribute Details
#digest ⇒ Object
Returns the value of attribute digest.
3 4 5 |
# File 'lib/pki_express/signature_policy_identifier.rb', line 3 def digest @digest end |
#oid ⇒ Object
Returns the value of attribute oid.
3 4 5 |
# File 'lib/pki_express/signature_policy_identifier.rb', line 3 def oid @oid end |
#uri ⇒ Object
Returns the value of attribute uri.
3 4 5 |
# File 'lib/pki_express/signature_policy_identifier.rb', line 3 def uri @uri end |