Class: TableauRestApi::Datasource
- Defined in:
- lib/tableau_rest_api/resources/datasource.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(ds) ⇒ Datasource
constructor
A new instance of Datasource.
Methods inherited from Base
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_at ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/tableau_rest_api/resources/datasource.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/tableau_rest_api/resources/datasource.rb', line 3 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/tableau_rest_api/resources/datasource.rb', line 3 def type @type end |