Class: Cadenya::Types::ToolOverlay_Selector
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolOverlay_Selector
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
readonly
Returns the value of attribute conditions.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(conditions: nil, operator: nil) ⇒ ToolOverlay_Selector
constructor
A new instance of ToolOverlay_Selector.
- #to_h ⇒ Object
Constructor Details
#initialize(conditions: nil, operator: nil) ⇒ ToolOverlay_Selector
Returns a new instance of ToolOverlay_Selector.
5867 5868 5869 5870 |
# File 'lib/cadenya/types.rb', line 5867 def initialize(conditions: nil, operator: nil) @conditions = conditions @operator = operator end |
Instance Attribute Details
#conditions ⇒ Object (readonly)
Returns the value of attribute conditions.
5865 5866 5867 |
# File 'lib/cadenya/types.rb', line 5865 def conditions @conditions end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
5865 5866 5867 |
# File 'lib/cadenya/types.rb', line 5865 def operator @operator end |
Class Method Details
.from_json(data) ⇒ Object
5872 5873 5874 5875 5876 5877 |
# File 'lib/cadenya/types.rb', line 5872 def self.from_json(data) new( conditions: data["conditions"].nil? ? nil : (data["conditions"]).map { |item| Types.decode_Selector_Condition(item) }, operator: data["operator"], ) end |