Class: Cadenya::Types::ToolSetAdapter_StringMatcher_Exact
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetAdapter_StringMatcher_Exact
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Object
readonly
Returns the value of attribute case_sensitive.
-
#exact ⇒ Object
readonly
Returns the value of attribute exact.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, exact: nil, case_sensitive: nil) ⇒ ToolSetAdapter_StringMatcher_Exact
constructor
A new instance of ToolSetAdapter_StringMatcher_Exact.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, exact: nil, case_sensitive: nil) ⇒ ToolSetAdapter_StringMatcher_Exact
Returns a new instance of ToolSetAdapter_StringMatcher_Exact.
8039 8040 8041 8042 8043 |
# File 'lib/cadenya/types.rb', line 8039 def initialize(type: nil, exact: nil, case_sensitive: nil) @type = type @exact = exact @case_sensitive = case_sensitive end |
Instance Attribute Details
#case_sensitive ⇒ Object (readonly)
Returns the value of attribute case_sensitive.
8037 8038 8039 |
# File 'lib/cadenya/types.rb', line 8037 def case_sensitive @case_sensitive end |
#exact ⇒ Object (readonly)
Returns the value of attribute exact.
8037 8038 8039 |
# File 'lib/cadenya/types.rb', line 8037 def exact @exact end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8037 8038 8039 |
# File 'lib/cadenya/types.rb', line 8037 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8045 8046 8047 8048 8049 8050 8051 |
# File 'lib/cadenya/types.rb', line 8045 def self.from_json(data) new( type: data["type"], exact: data["exact"], case_sensitive: data["caseSensitive"], ) end |