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