Class: Cadenya::Types::ToolSetAdapter_StringMatcher_Regex
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetAdapter_StringMatcher_Regex
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Object
readonly
Returns the value of attribute case_sensitive.
-
#regex ⇒ Object
readonly
Returns the value of attribute regex.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, regex: nil, case_sensitive: nil) ⇒ ToolSetAdapter_StringMatcher_Regex
constructor
A new instance of ToolSetAdapter_StringMatcher_Regex.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, regex: nil, case_sensitive: nil) ⇒ ToolSetAdapter_StringMatcher_Regex
Returns a new instance of ToolSetAdapter_StringMatcher_Regex.
8143 8144 8145 8146 8147 |
# File 'lib/cadenya/types.rb', line 8143 def initialize(type: nil, regex: nil, case_sensitive: nil) @type = type @regex = regex @case_sensitive = case_sensitive end |
Instance Attribute Details
#case_sensitive ⇒ Object (readonly)
Returns the value of attribute case_sensitive.
8141 8142 8143 |
# File 'lib/cadenya/types.rb', line 8141 def case_sensitive @case_sensitive end |
#regex ⇒ Object (readonly)
Returns the value of attribute regex.
8141 8142 8143 |
# File 'lib/cadenya/types.rb', line 8141 def regex @regex end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8141 8142 8143 |
# File 'lib/cadenya/types.rb', line 8141 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8149 8150 8151 8152 8153 8154 8155 |
# File 'lib/cadenya/types.rb', line 8149 def self.from_json(data) new( type: data["type"], regex: data["regex"], case_sensitive: data["caseSensitive"], ) end |