lib/ecoportal/api/v2.rb in ecoportal-api-v2-2.0.7 vs lib/ecoportal/api/v2.rb in ecoportal-api-v2-2.0.8
- old
+ new
@@ -3,9 +3,14 @@
module Ecoportal
module API
# @attr_reader client [Common::Client] a `Common::Client` object that holds the configuration of the api connection.
# @attr_reader logger [Logger] the logger.
class V2
+ unless Ecoportal::API.const_defined?(:GEM2_VERSION)
+ msg = "Correct way to require this gem is `require 'ecoportal/api-v2`"
+ raise LoadError, msg
+ end
+
extend Ecoportal::API::Common::BaseClass
include Ecoportal::API::Common::Logging
VERSION = "v2".freeze