class MyJohnDeereApi::UnsupportedEnvironmentError
This error is used when an unsupported environment has been requested. Supported environments currently include :sandbox, :live, and :production as a synonym for :live.
Public Class Methods
new(environment = nil)
click to toggle source
Calls superclass method
# File lib/my_john_deere_api/errors/unsupported_environment_error.rb, line 8 def initialize(environment = nil) message = if environment "The #{environment.inspect} environment is not supported." else 'This environment is not supported.' end super(message) end