Class: TableauRestApi::Workbook

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_array, #to_h, #to_hash

Constructor Details

#initialize(workbook) ⇒ Workbook

Returns a new instance of Workbook.



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

def initialize(workbook)
  @id = workbook.id
  @name = workbook.name
  @content_url = workbook.contentUrl
  @project = Project.new(workbook.project)
end

Instance Attribute Details

#content_urlObject (readonly)

Returns the value of attribute content_url.



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

def content_url
  @content_url
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#projectObject (readonly)

Returns the value of attribute project.



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

def project
  @project
end