Class: Nephophobia::Response::Credential
- Inherits:
-
Object
- Object
- Nephophobia::Response::Credential
- Defined in:
- lib/nephophobia/response/credential.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#material ⇒ Object
readonly
Returns the value of attribute material.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Credential
constructor
A new instance of Credential.
Constructor Details
#initialize(attributes) ⇒ Credential
Returns a new instance of Credential.
8 9 10 11 12 13 14 |
# File 'lib/nephophobia/response/credential.rb', line 8 def initialize attributes @attributes = attributes @material = attributes['keyMaterial'] @name = attributes['keyName'] @fingerprint = attributes['keyFingerprint'] end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
6 7 8 |
# File 'lib/nephophobia/response/credential.rb', line 6 def attributes @attributes end |
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
4 5 6 |
# File 'lib/nephophobia/response/credential.rb', line 4 def fingerprint @fingerprint end |
#material ⇒ Object (readonly)
Returns the value of attribute material.
4 5 6 |
# File 'lib/nephophobia/response/credential.rb', line 4 def material @material end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/nephophobia/response/credential.rb', line 4 def name @name end |