Class: Cadenya::Types::ToolSetAdapter_StringMatcher_StartsWith
- Inherits:
-
Object
- Object
- Cadenya::Types::ToolSetAdapter_StringMatcher_StartsWith
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#case_sensitive ⇒ Object
readonly
Returns the value of attribute case_sensitive.
-
#starts_with ⇒ Object
readonly
Returns the value of attribute starts_with.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, starts_with: nil, case_sensitive: nil) ⇒ ToolSetAdapter_StringMatcher_StartsWith
constructor
A new instance of ToolSetAdapter_StringMatcher_StartsWith.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, starts_with: nil, case_sensitive: nil) ⇒ ToolSetAdapter_StringMatcher_StartsWith
Returns a new instance of ToolSetAdapter_StringMatcher_StartsWith.
8065 8066 8067 8068 8069 |
# File 'lib/cadenya/types.rb', line 8065 def initialize(type: nil, starts_with: nil, case_sensitive: nil) @type = type @starts_with = starts_with @case_sensitive = case_sensitive end |
Instance Attribute Details
#case_sensitive ⇒ Object (readonly)
Returns the value of attribute case_sensitive.
8063 8064 8065 |
# File 'lib/cadenya/types.rb', line 8063 def case_sensitive @case_sensitive end |
#starts_with ⇒ Object (readonly)
Returns the value of attribute starts_with.
8063 8064 8065 |
# File 'lib/cadenya/types.rb', line 8063 def starts_with @starts_with end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8063 8064 8065 |
# File 'lib/cadenya/types.rb', line 8063 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
8071 8072 8073 8074 8075 8076 8077 |
# File 'lib/cadenya/types.rb', line 8071 def self.from_json(data) new( type: data["type"], starts_with: data["startsWith"], case_sensitive: data["caseSensitive"], ) end |