Class: PowerBI::Gateway

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tenant, data) ⇒ Gateway

Returns a new instance of Gateway.



5
6
7
8
9
10
11
12
# File 'lib/power-bi/gateway.rb', line 5

def initialize(tenant, data)
  @id = data[:id]
  @name = data[:name]
  @type = data[:type]
  @public_key = data[:publicKey]
  @tenant = tenant
  @gateway_datasources = GatewayDatasourceArray.new(@tenant, self)
end

Instance Attribute Details

#gateway_datasourcesObject (readonly)

Returns the value of attribute gateway_datasources.



3
4
5
# File 'lib/power-bi/gateway.rb', line 3

def gateway_datasources
  @gateway_datasources
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/power-bi/gateway.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/power-bi/gateway.rb', line 3

def name
  @name
end

#public_keyObject (readonly)

Returns the value of attribute public_key.



3
4
5
# File 'lib/power-bi/gateway.rb', line 3

def public_key
  @public_key
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/power-bi/gateway.rb', line 3

def type
  @type
end