README.md in chord-0.0.2 vs README.md in chord-0.0.3
- old
+ new
@@ -1,18 +1,12 @@
# Chord Commerce OMS API Gem
These classes provide simple read and write access to the Chord OMS API. Get started like this:
- CHORD_API_CONFIG = {
- staging: {
- base_url: 'https://<customer>.staging.assembly-api.com/api/',
- api_key: '<key>'
- },
- production: {
- base_url: 'https://<customer>.assembly-api.com/api/',
- api_key: '<key>'
- }
- }
+ Chord.config(
+ base_url: 'https://<customer>.staging.assembly-api.com/api/',
+ api_key: '<key>'
+ )
u = Chord::User.find(1) # fetch user
u.attributes # see attributes hash
u.update(name: 'New Name', notes: 'Etc') # update attributes
u.update(metadata: {ambassador_id: 415}) # when updating 'metadata' attribute, the given