Class: Algolia::Search::Anchoring
- Inherits:
-
Object
- Object
- Algolia::Search::Anchoring
- Defined in:
- lib/algolia/models/search/anchoring.rb
Constant Summary collapse
- IS =
"is".freeze
- STARTS_WITH =
"startsWith".freeze
- ENDS_WITH =
"endsWith".freeze
- CONTAINS =
"contains".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
14 15 16 |
# File 'lib/algolia/models/search/anchoring.rb', line 14 def self.all_vars @all_vars ||= [IS, STARTS_WITH, ENDS_WITH, CONTAINS].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
21 22 23 |
# File 'lib/algolia/models/search/anchoring.rb', line 21 def self.build_from_hash(value) new.build_from_hash(value) end |