Class: PowerBI::Datasource
- Inherits:
-
Object
- Object
- PowerBI::Datasource
- Defined in:
- lib/power-bi/datasource.rb
Instance Attribute Summary collapse
-
#connection_details ⇒ Object
readonly
Returns the value of attribute connection_details.
-
#datasource_id ⇒ Object
readonly
Returns the value of attribute datasource_id.
-
#datasource_type ⇒ Object
readonly
Returns the value of attribute datasource_type.
-
#gateway_id ⇒ Object
readonly
Returns the value of attribute gateway_id.
Instance Method Summary collapse
-
#initialize(tenant, data) ⇒ Datasource
constructor
A new instance of Datasource.
Constructor Details
#initialize(tenant, data) ⇒ Datasource
Returns a new instance of Datasource.
5 6 7 8 9 10 11 |
# File 'lib/power-bi/datasource.rb', line 5 def initialize(tenant, data) @gateway_id = data[:gatewayId] @datasource_type = data[:datasourceType] @connection_details = data[:connectionDetails] @datasource_id = data[:datasourceId] @tenant = tenant end |
Instance Attribute Details
#connection_details ⇒ Object (readonly)
Returns the value of attribute connection_details.
3 4 5 |
# File 'lib/power-bi/datasource.rb', line 3 def connection_details @connection_details end |
#datasource_id ⇒ Object (readonly)
Returns the value of attribute datasource_id.
3 4 5 |
# File 'lib/power-bi/datasource.rb', line 3 def datasource_id @datasource_id end |
#datasource_type ⇒ Object (readonly)
Returns the value of attribute datasource_type.
3 4 5 |
# File 'lib/power-bi/datasource.rb', line 3 def datasource_type @datasource_type end |
#gateway_id ⇒ Object (readonly)
Returns the value of attribute gateway_id.
3 4 5 |
# File 'lib/power-bi/datasource.rb', line 3 def gateway_id @gateway_id end |