Class: Nephophobia::Response::Credential

Inherits:
Object
  • Object
show all
Defined in:
lib/nephophobia/response/credential.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject

Returns the value of attribute attributes.



6
7
8
# File 'lib/nephophobia/response/credential.rb', line 6

def attributes
  @attributes
end

#fingerprintObject (readonly)

Returns the value of attribute fingerprint.



4
5
6
# File 'lib/nephophobia/response/credential.rb', line 4

def fingerprint
  @fingerprint
end

#materialObject (readonly)

Returns the value of attribute material.



4
5
6
# File 'lib/nephophobia/response/credential.rb', line 4

def material
  @material
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/nephophobia/response/credential.rb', line 4

def name
  @name
end