Class: Cadenya::Types::ToolOverlay
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolOverlay
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#disabled ⇒ Object
readonly
Returns the value of attribute disabled.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#parameter_actions ⇒ Object
readonly
Returns the value of attribute parameter_actions.
-
#result_actions ⇒ Object
readonly
Returns the value of attribute result_actions.
-
#selector ⇒ Object
readonly
Returns the value of attribute selector.
-
#widget_argument_exposure ⇒ Object
readonly
Returns the value of attribute widget_argument_exposure.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, selector: nil, parameter_actions: nil, result_actions: nil, disabled: nil, widget_argument_exposure: nil) ⇒ ToolOverlay
constructor
A new instance of ToolOverlay.
- #to_h ⇒ Object
Constructor Details
#initialize(key: nil, selector: nil, parameter_actions: nil, result_actions: nil, disabled: nil, widget_argument_exposure: nil) ⇒ ToolOverlay
Returns a new instance of ToolOverlay.
5786 5787 5788 5789 5790 5791 5792 5793 |
# File 'lib/cadenya/types.rb', line 5786 def initialize(key: nil, selector: nil, parameter_actions: nil, result_actions: nil, disabled: nil, widget_argument_exposure: nil) @key = key @selector = selector @parameter_actions = parameter_actions @result_actions = result_actions @disabled = disabled @widget_argument_exposure = end |
Instance Attribute Details
#disabled ⇒ Object (readonly)
Returns the value of attribute disabled.
5784 5785 5786 |
# File 'lib/cadenya/types.rb', line 5784 def disabled @disabled end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
5784 5785 5786 |
# File 'lib/cadenya/types.rb', line 5784 def key @key end |
#parameter_actions ⇒ Object (readonly)
Returns the value of attribute parameter_actions.
5784 5785 5786 |
# File 'lib/cadenya/types.rb', line 5784 def parameter_actions @parameter_actions end |
#result_actions ⇒ Object (readonly)
Returns the value of attribute result_actions.
5784 5785 5786 |
# File 'lib/cadenya/types.rb', line 5784 def result_actions @result_actions end |
#selector ⇒ Object (readonly)
Returns the value of attribute selector.
5784 5785 5786 |
# File 'lib/cadenya/types.rb', line 5784 def selector @selector end |
#widget_argument_exposure ⇒ Object (readonly)
Returns the value of attribute widget_argument_exposure.
5784 5785 5786 |
# File 'lib/cadenya/types.rb', line 5784 def @widget_argument_exposure end |
Class Method Details
.from_json(data) ⇒ Object
5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 |
# File 'lib/cadenya/types.rb', line 5795 def self.from_json(data) new( key: data["key"], selector: data["selector"].nil? ? nil : Types::ToolOverlay_Selector.from_json(data["selector"]), parameter_actions: data["parameterActions"].nil? ? nil : (data["parameterActions"]).map { |item| Types.decode_ToolOverlay_ParameterAction(item) }, result_actions: data["resultActions"].nil? ? nil : (data["resultActions"]).map { |item| Types.decode_ToolOverlay_ResultAction(item) }, disabled: data["disabled"], widget_argument_exposure: data["widgetArgumentExposure"].nil? ? nil : Types::ToolOverlay_WidgetArgumentExposure.from_json(data["widgetArgumentExposure"]), ) end |
Instance Method Details
#to_h ⇒ Object
5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 |
# File 'lib/cadenya/types.rb', line 5806 def to_h { key: Util.plain(@key), selector: Util.plain(@selector), parameter_actions: Util.plain(@parameter_actions), result_actions: Util.plain(@result_actions), disabled: Util.plain(@disabled), widget_argument_exposure: Util.plain(@widget_argument_exposure), }.reject { |_k, v| v.nil? } end |