Class: OmniAI::Google::UnknownLocationError

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ UnknownLocationError

Returns a new instance of UnknownLocationError.

Parameters:

  • model (String)


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)

Returns:

  • (String)


8
9
10
# File 'lib/omniai/google/unknown_location_error.rb', line 8

def model
  @model
end