Class: PowerBI::Parameter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tenant, data) ⇒ Parameter

Returns a new instance of Parameter.



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

def initialize(tenant, data)
  @name = data[:name]
  @type = data[:type]
  @is_required = data[:isRequired]
  @current_value = data[:currentValue]
end

Instance Attribute Details

#current_valueObject (readonly)

Returns the value of attribute current_value.



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

def current_value
  @current_value
end

#is_requiredObject (readonly)

Returns the value of attribute is_required.



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

def is_required
  @is_required
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end