Class: OneDriveForBusiness::Identity
- Inherits:
-
Object
- Object
- OneDriveForBusiness::Identity
- Defined in:
- lib/onedrive_for_business/identity.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(fields) ⇒ Identity
constructor
A new instance of Identity.
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_name ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/onedrive_for_business/identity.rb', line 8 def id @id end |