Class: OneDriveForBusiness::Identity

Inherits:
Object
  • Object
show all
Defined in:
lib/onedrive_for_business/identity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fields) ⇒ Identity

Returns a new instance of Identity.



3
4
5
6
# File 'lib/onedrive_for_business/identity.rb', line 3

def initialize(fields)
  @id = fields['id']
  @display_name = fields['displayName']
end

Instance Attribute Details

#display_nameObject (readonly)

Returns the value of attribute display_name.



9
10
11
# File 'lib/onedrive_for_business/identity.rb', line 9

def display_name
  @display_name
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/onedrive_for_business/identity.rb', line 8

def id
  @id
end