Class: AccessGrid::CredentialProfile

Inherits:
Object
  • Object
show all
Defined in:
lib/accessgrid/console.rb

Overview

Represents a credential profile configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aidObject (readonly)

Returns the value of attribute aid.



295
296
297
# File 'lib/accessgrid/console.rb', line 295

def aid
  @aid
end

#apple_idObject (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_storageObject (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_atObject (readonly)

Returns the value of attribute created_at.



295
296
297
# File 'lib/accessgrid/console.rb', line 295

def created_at
  @created_at
end

#filesObject (readonly)

Returns the value of attribute files.



295
296
297
# File 'lib/accessgrid/console.rb', line 295

def files
  @files
end

#idObject (readonly)

Returns the value of attribute id.



295
296
297
# File 'lib/accessgrid/console.rb', line 295

def id
  @id
end

#keysObject (readonly)

Returns the value of attribute keys.



295
296
297
# File 'lib/accessgrid/console.rb', line 295

def keys
  @keys
end

#nameObject (readonly)

Returns the value of attribute name.



295
296
297
# File 'lib/accessgrid/console.rb', line 295

def name
  @name
end