Class: Dropbox::FullAccount
Instance Attribute Summary collapse
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#is_paired ⇒ Object
readonly
Returns the value of attribute is_paired.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#profile_photo_url ⇒ Object
readonly
Returns the value of attribute profile_photo_url.
-
#referral_link ⇒ Object
readonly
Returns the value of attribute referral_link.
Attributes inherited from Account
#account_id, #disabled, #display_name, #email, #email_verified
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ FullAccount
constructor
A new instance of FullAccount.
Constructor Details
#initialize(attrs = {}) ⇒ FullAccount
Returns a new instance of FullAccount.
28 29 30 31 32 33 34 35 |
# File 'lib/dropbox/account.rb', line 28 def initialize(attrs={}) @locale = attrs.delete('locale') @referral_link = attrs.delete('referral_link') @is_paired = attrs.delete('is_paired') @profile_photo_url = attrs.delete('profile_photo_url') @country = attrs.delete('country') super(attrs) end |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country.
26 27 28 |
# File 'lib/dropbox/account.rb', line 26 def country @country end |
#is_paired ⇒ Object (readonly)
Returns the value of attribute is_paired.
26 27 28 |
# File 'lib/dropbox/account.rb', line 26 def is_paired @is_paired end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
26 27 28 |
# File 'lib/dropbox/account.rb', line 26 def locale @locale end |
#profile_photo_url ⇒ Object (readonly)
Returns the value of attribute profile_photo_url.
26 27 28 |
# File 'lib/dropbox/account.rb', line 26 def profile_photo_url @profile_photo_url end |
#referral_link ⇒ Object (readonly)
Returns the value of attribute referral_link.
26 27 28 |
# File 'lib/dropbox/account.rb', line 26 def referral_link @referral_link end |