Class: PowerBI::Gateway
- Inherits:
-
Object
- Object
- PowerBI::Gateway
- Defined in:
- lib/power-bi/gateway.rb
Instance Attribute Summary collapse
-
#gateway_datasources ⇒ Object
readonly
Returns the value of attribute gateway_datasources.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#public_key ⇒ Object
readonly
Returns the value of attribute public_key.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(tenant, data) ⇒ Gateway
constructor
A new instance of Gateway.
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_datasources ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/power-bi/gateway.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/power-bi/gateway.rb', line 3 def name @name end |
#public_key ⇒ Object (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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/power-bi/gateway.rb', line 3 def type @type end |