@@ -38,7 +38,7 @@ params = {
3838}
3939
4040begin
41- customer = Mango::Customer .create params
41+ customer = Mango::Customers .create params
4242rescue Mango::Error => e
4343 e.each {|code, message| ... }
4444end
@@ -54,7 +54,7 @@ All the requests go through:
5454Mango.request(method, url, api_key=nil, params={}, headers={})
5555```
5656
57- But you can use CRUD methods on ` Mango::Card ` , ` Mango::Customer ` ...
57+ But you can use CRUD methods on ` Mango::Cards ` , ` Mango::Customers ` ...
5858```
5959def create params={}, api_key=nil
6060def list params={}, api_key=nil
@@ -65,17 +65,17 @@ def update uid, params={}, api_key=nil
6565
6666So this two are equivalent:
6767```
68- customer = Mango::Customer .create params
68+ customer = Mango::Customers .create params
6969customer = Mango.request :post, '/customers/', api_key, params
7070```
7171
7272This are the operations available for each resource:
7373
7474| Resource| list| create| retrieve| update| delete| delete_all|
75- | -| :-:| :-:| :-:| :-:| :-:| :-:|
76- | Card | x | x | x | x | x | |
77- | Charge | x | x | x | | | |
78- | Customer | x | x | x | x | x | |
79- | Installment | | | x | | | |
80- | Queue | x | x | x | | x | x |
81- | Refund | x | x | x | | | |
75+ | -------- | :-- :| :---- :| :------ :| :---- :| :---- :| :------- -:|
76+ | Cards | x | x | x | x | x | |
77+ | Charges | x | x | x | | | |
78+ | Customers | x | x | x | x | x | |
79+ | Installments | | | x | | | |
80+ | Queue | x | x | x | | x | x |
81+ | Refunds | x | x | x | | | |
0 commit comments