We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There's a seeminglyl useful from_hash: argument in ShopifyAPI::Rest::Base#initialize, but it's not usable because all subclasses override #initialize.
from_hash:
ShopifyAPI::Rest::Base#initialize
#initialize
# base.rb def initialize(session: nil, from_hash: nil) # elided code from_hash&.each do |key, value| set_property(key, value) end end
# asset.rb def initialize(session: ShopifyAPI::Context.active_session) super(session: session) # elided code end
Initialize a ShopifyAPI::Rest::* object with #new(from_hash: my_hash)
ShopifyAPI::Rest::*
#new(from_hash: my_hash)
ArgumentError: unknown keyword: :from_hash
shopify_api
13.2.0
2023-10
The text was updated successfully, but these errors were encountered:
Up! this function is still featured quite prominently in the latest version of doc:
shopify-api-ruby/docs/usage/rest.md
Line 51 in 6c2a45f
Sorry, something went wrong.
lizkenyon
No branches or pull requests
Issue summary
There's a seeminglyl useful
from_hash:
argument inShopifyAPI::Rest::Base#initialize
, but it's not usable because all subclasses override#initialize
.Expected behavior
Initialize a
ShopifyAPI::Rest::*
object with#new(from_hash: my_hash)
Actual behavior
Steps to reproduce the problem
Specifications
shopify_api
version:13.2.0
2023-10
):The text was updated successfully, but these errors were encountered: