Class: FinchAPI::Unknown Abstract Private
- Inherits:
-
Object
- Object
- FinchAPI::Unknown
- Extended by:
- Converter
- Defined in:
- lib/finch-api/base_model.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
This class is abstract.
When we don’t know what to expect for the value.
Class Method Summary collapse
- .==(other) ⇒ Boolean private
- .===(other) ⇒ Boolean private
- .coerce(value, state:) ⇒ Object private
Methods included from Converter
Class Method Details
.==(other) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
224 |
# File 'lib/finch-api/base_model.rb', line 224 def self.==(other) = other.is_a?(Class) && other <= FinchAPI::Unknown |
.===(other) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
219 |
# File 'lib/finch-api/base_model.rb', line 219 def self.===(other) = true |
.coerce(value, state:) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
240 241 242 243 |
# File 'lib/finch-api/base_model.rb', line 240 def coerce(value, state:) state.fetch(:exactness)[:yes] += 1 value end |