Class: OmniAI::Google::UnknownLocationError
- Inherits:
-
Error
- Object
- Error
- OmniAI::Google::UnknownLocationError
- Defined in:
- lib/omniai/google/unknown_location_error.rb
Overview
Raised before any request when locations is configured but has no entry for the model.
Instance Attribute Summary collapse
- #model ⇒ String readonly
Instance Method Summary collapse
-
#initialize(model) ⇒ UnknownLocationError
constructor
A new instance of UnknownLocationError.
Constructor Details
#initialize(model) ⇒ UnknownLocationError
Returns a new instance of UnknownLocationError.
11 12 13 14 |
# File 'lib/omniai/google/unknown_location_error.rb', line 11 def initialize(model) @model = model super("no location configured for model #{model.inspect}") end |
Instance Attribute Details
#model ⇒ String (readonly)
8 9 10 |
# File 'lib/omniai/google/unknown_location_error.rb', line 8 def model @model end |