Class: ShopifyAPI::ApiVersion::NullVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/shopify_api/api_version.rb

Class Method Summary collapse

Class Method Details

.matches?(version) ⇒ Boolean

Returns:

  • (Boolean)

183
184
185
# File 'lib/shopify_api/api_version.rb', line 183

def matches?(version)
  version.nil? || version == self
end

.new(*_args) ⇒ Object

Raises:

  • (NoMethodError)

179
180
181
# File 'lib/shopify_api/api_version.rb', line 179

def new(*_args)
  raise NoMethodError, "NullVersion is an abstract class and cannot be instantiated."
end

.raise_not_set_error(*_args) ⇒ Object Also known as: stable?, construct_api_path, construct_graphql_path, latest_supported?, supported?, verified?, unstable?, handle, display_name, supported, verified, latest_supported, name


187
188
189
# File 'lib/shopify_api/api_version.rb', line 187

def raise_not_set_error(*_args)
  raise ApiVersionNotSetError, "You must set ShopifyAPI::Base.api_version before making a request."
end