Class: TableauRestApi::Datasource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_array, #to_h, #to_hash

Constructor Details

#initialize(ds) ⇒ Datasource

Returns a new instance of Datasource.



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

def initialize(ds)
  @id = ds.id
  @name = ds.name
  @type = ds.type
  @created_at = ds.createdAt
end

Instance Attribute Details

#created_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end