Class: TableauRestApi::Project

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_array, #to_h, #to_hash

Constructor Details

#initialize(project) ⇒ Project

Returns a new instance of Project.



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

def initialize(project)
  @id = project.id
  @name = project.name
  @description = project.description
  @content_permissions = project.contentPermissions
end

Instance Attribute Details

#content_permissionsObject (readonly)

Returns the value of attribute content_permissions.



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

def content_permissions
  @content_permissions
end

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end