Class: AccessGrid::CredentialProfile
- Inherits:
-
Object
- Object
- AccessGrid::CredentialProfile
- Defined in:
- lib/accessgrid/console.rb
Overview
Represents a credential profile configuration.
Instance Attribute Summary collapse
-
#aid ⇒ Object
readonly
Returns the value of attribute aid.
-
#apple_id ⇒ Object
readonly
Returns the value of attribute apple_id.
-
#card_storage ⇒ Object
readonly
Returns the value of attribute card_storage.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#keys ⇒ Object
readonly
Returns the value of attribute keys.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ CredentialProfile
constructor
A new instance of CredentialProfile.
Constructor Details
#initialize(data) ⇒ CredentialProfile
Returns a new instance of CredentialProfile.
297 298 299 300 301 302 303 304 305 306 |
# File 'lib/accessgrid/console.rb', line 297 def initialize(data) @id = data['id'] @aid = data['aid'] @name = data['name'] @apple_id = data['apple_id'] @created_at = data['created_at'] @card_storage = data['card_storage'] @keys = data['keys'] || [] @files = data['files'] || [] end |
Instance Attribute Details
#aid ⇒ Object (readonly)
Returns the value of attribute aid.
295 296 297 |
# File 'lib/accessgrid/console.rb', line 295 def aid @aid end |
#apple_id ⇒ Object (readonly)
Returns the value of attribute apple_id.
295 296 297 |
# File 'lib/accessgrid/console.rb', line 295 def apple_id @apple_id end |
#card_storage ⇒ Object (readonly)
Returns the value of attribute card_storage.
295 296 297 |
# File 'lib/accessgrid/console.rb', line 295 def card_storage @card_storage end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
295 296 297 |
# File 'lib/accessgrid/console.rb', line 295 def created_at @created_at end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
295 296 297 |
# File 'lib/accessgrid/console.rb', line 295 def files @files end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
295 296 297 |
# File 'lib/accessgrid/console.rb', line 295 def id @id end |
#keys ⇒ Object (readonly)
Returns the value of attribute keys.
295 296 297 |
# File 'lib/accessgrid/console.rb', line 295 def keys @keys end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
295 296 297 |
# File 'lib/accessgrid/console.rb', line 295 def name @name end |