Class: PowerBI::Datasource

Inherits:
Object
  • Object
show all
Defined in:
lib/power-bi/datasource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_detailsObject (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_idObject (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_typeObject (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_idObject (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