Class: Dropbox::Account
- Inherits:
-
Object
- Object
- Dropbox::Account
- Defined in:
- lib/dropbox/account.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#disabled ⇒ Object
readonly
Returns the value of attribute disabled.
-
#display_name ⇒ Object
readonly
Returns the value of attribute display_name.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#email_verified ⇒ Object
readonly
Returns the value of attribute email_verified.
-
#profile_photo_url ⇒ Object
readonly
Returns the value of attribute profile_photo_url.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(attrs = {}) ⇒ Account
Returns a new instance of Account.
5 6 7 8 9 10 11 12 |
# File 'lib/dropbox/account.rb', line 5 def initialize(attrs={}) @account_id = attrs['account_id'] @display_name = attrs['name']['display_name'] @email = attrs['email'] @email_verified = attrs['email_verified'] @disabled = attrs['disabled'] @profile_photo_url = attrs['profile_photo_url'] end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
3 4 5 |
# File 'lib/dropbox/account.rb', line 3 def account_id @account_id end |
#disabled ⇒ Object (readonly)
Returns the value of attribute disabled.
3 4 5 |
# File 'lib/dropbox/account.rb', line 3 def disabled @disabled end |
#display_name ⇒ Object (readonly)
Returns the value of attribute display_name.
3 4 5 |
# File 'lib/dropbox/account.rb', line 3 def display_name @display_name end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/dropbox/account.rb', line 3 def email @email end |
#email_verified ⇒ Object (readonly)
Returns the value of attribute email_verified.
3 4 5 |
# File 'lib/dropbox/account.rb', line 3 def email_verified @email_verified end |
#profile_photo_url ⇒ Object (readonly)
Returns the value of attribute profile_photo_url.
3 4 5 |
# File 'lib/dropbox/account.rb', line 3 def profile_photo_url @profile_photo_url end |