module MyJohnDeereApi::Helpers::EnvironmentHelper
Attributes
environment[R]
Private Instance Methods
environment=(value)
click to toggle source
Intelligently set the environment
# File lib/my_john_deere_api/helpers/environment_helper.rb, line 12 def environment=(value) value = (value || :live).to_sym @environment = case value when :sandbox, :live value when :production :live else raise UnsupportedEnvironmentError, value end end