Skip to content
New issue

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

How Does One Persist Data with This Client‽ #174

Open
sshaw opened this issue Oct 27, 2022 · 2 comments
Open

How Does One Persist Data with This Client‽ #174

sshaw opened this issue Oct 27, 2022 · 2 comments

Comments

@sshaw
Copy link

sshaw commented Oct 27, 2022

Where is this documented? I've look at the RDocs and at the specs (🙀) and nothing works!

@sshaw
Copy link
Author

sshaw commented Oct 27, 2022

rails [5.1.7] (bigcommerce-test)$ cust[0].class
=> Bigcommerce::Customer
rails [5.1.7] (bigcommerce-test)$ cust[0].class.update(cust[0].id, cust[0])
Traceback (most recent call last):
        1: from (irb):30
NoMethodError (undefined method `put' for nil:NilClass)
Did you mean?  puts
               putc
rails [5.1.7] (bigcommerce-test)$ cust[0].class.update(cust[0].id, cust[0].to_h)
Traceback (most recent call last):
        2: from (irb):31
        1: from (irb):31:in `rescue in irb_binding'
NoMethodError (undefined method `put' for nil:NilClass)
rails [5.1.7] (bigcommerce-test)$ cust[0].update
=> #<Bigcommerce::Customer ...

Of course #update is silly Hashie method.

@sshaw
Copy link
Author

sshaw commented Oct 27, 2022

I did find this but given the example above update doesn't work :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant