Class: PolyPseudo::Key
- Inherits:
-
Object
- Object
- PolyPseudo::Key
- Defined in:
- lib/poly_pseudo/key.rb
Instance Attribute Summary collapse
-
#ec ⇒ Object
readonly
Returns the value of attribute ec.
-
#recipient ⇒ Object
readonly
Returns the value of attribute recipient.
-
#recipient_key_set_version ⇒ Object
readonly
Returns the value of attribute recipient_key_set_version.
-
#scheme_key_version ⇒ Object
readonly
Returns the value of attribute scheme_key_version.
-
#scheme_version ⇒ Object
readonly
Returns the value of attribute scheme_version.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Key
constructor
A new instance of Key.
Constructor Details
#initialize(attributes) ⇒ Key
Returns a new instance of Key.
5 6 7 8 9 10 11 12 |
# File 'lib/poly_pseudo/key.rb', line 5 def initialize(attributes) @scheme_version = attributes["SchemeVersion"] @scheme_key_version = attributes["SchemeKeyVersion"] @type = attributes["Type"] @recipient = attributes["Recipient"] @recipient_key_set_version = attributes["RecipientKeySetVersion"] @ec = attributes["PrivateKey"] end |
Instance Attribute Details
#ec ⇒ Object (readonly)
Returns the value of attribute ec.
3 4 5 |
# File 'lib/poly_pseudo/key.rb', line 3 def ec @ec end |
#recipient ⇒ Object (readonly)
Returns the value of attribute recipient.
3 4 5 |
# File 'lib/poly_pseudo/key.rb', line 3 def recipient @recipient end |
#recipient_key_set_version ⇒ Object (readonly)
Returns the value of attribute recipient_key_set_version.
3 4 5 |
# File 'lib/poly_pseudo/key.rb', line 3 def recipient_key_set_version @recipient_key_set_version end |
#scheme_key_version ⇒ Object (readonly)
Returns the value of attribute scheme_key_version.
3 4 5 |
# File 'lib/poly_pseudo/key.rb', line 3 def scheme_key_version @scheme_key_version end |
#scheme_version ⇒ Object (readonly)
Returns the value of attribute scheme_version.
3 4 5 |
# File 'lib/poly_pseudo/key.rb', line 3 def scheme_version @scheme_version end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/poly_pseudo/key.rb', line 3 def type @type end |