Class: ShopifyAPI::ApiVersion::Unstable
- Inherits:
-
ShopifyAPI::ApiVersion
- Object
- ShopifyAPI::ApiVersion
- ShopifyAPI::ApiVersion::Unstable
- Defined in:
- lib/shopify_api/api_version.rb
Constant Summary collapse
- API_PREFIX =
'/admin/api/unstable/'
Instance Method Summary collapse
- #construct_api_path(path) ⇒ Object
- #construct_graphql_path ⇒ Object
-
#initialize ⇒ Unstable
constructor
A new instance of Unstable.
Methods inherited from ShopifyAPI::ApiVersion
#<=>, #==, clear_defined_versions, coerce_to_version, define_version, #hash, #inspect, latest_stable_version, #stable?, #to_s
Methods included from DefinedVersions
Constructor Details
#initialize ⇒ Unstable
Returns a new instance of Unstable.
74 75 76 77 78 |
# File 'lib/shopify_api/api_version.rb', line 74 def initialize @version_name = "unstable" @url = API_PREFIX @numeric_version = 9_000_00 end |
Instance Method Details
#construct_api_path(path) ⇒ Object
80 81 82 |
# File 'lib/shopify_api/api_version.rb', line 80 def construct_api_path(path) "#{@url}#{path}" end |
#construct_graphql_path ⇒ Object
84 85 86 |
# File 'lib/shopify_api/api_version.rb', line 84 def construct_graphql_path construct_api_path("graphql.json") end |