Class: Dropbox::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/dropbox/account.rb

Direct Known Subclasses

BasicAccount, FullAccount

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute account_id


3
4
5
# File 'lib/dropbox/account.rb', line 3

def 
  @account_id
end

#disabledObject (readonly)

Returns the value of attribute disabled


3
4
5
# File 'lib/dropbox/account.rb', line 3

def disabled
  @disabled
end

#display_nameObject (readonly)

Returns the value of attribute display_name


3
4
5
# File 'lib/dropbox/account.rb', line 3

def display_name
  @display_name
end

#emailObject (readonly)

Returns the value of attribute email


3
4
5
# File 'lib/dropbox/account.rb', line 3

def email
  @email
end

#email_verifiedObject (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_urlObject (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