Class: TableauRestApi::User

Inherits:
Base
  • Object
show all
Defined in:
lib/tableau_rest_api/resources/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_array, #to_h, #to_hash

Constructor Details

#initialize(user) ⇒ User

Returns a new instance of User.



5
6
7
8
9
10
# File 'lib/tableau_rest_api/resources/user.rb', line 5

def initialize(user)
  @id = user.id
  @name = user.name
  @site_role = user.siteRole
  @last_login = user.lastLogin
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/tableau_rest_api/resources/user.rb', line 3

def id
  @id
end

#last_loginObject (readonly)

Returns the value of attribute last_login.



3
4
5
# File 'lib/tableau_rest_api/resources/user.rb', line 3

def 
  @last_login
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/tableau_rest_api/resources/user.rb', line 3

def name
  @name
end

#site_roleObject (readonly)

Returns the value of attribute site_role.



3
4
5
# File 'lib/tableau_rest_api/resources/user.rb', line 3

def site_role
  @site_role
end