Skip to content

Commit eb22f10

Browse files
committed
Merge pull request #1 from wacko/master
Minor improvements on README
2 parents 2382247 + 2ace002 commit eb22f10

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ params = {
3838
}
3939
4040
begin
41-
customer = Mango::Customer.create params
41+
customer = Mango::Customers.create params
4242
rescue Mango::Error => e
4343
e.each {|code, message| ... }
4444
end
@@ -54,7 +54,7 @@ All the requests go through:
5454
Mango.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
```
5959
def create params={}, api_key=nil
6060
def list params={}, api_key=nil
@@ -65,17 +65,17 @@ def update uid, params={}, api_key=nil
6565

6666
So this two are equivalent:
6767
```
68-
customer = Mango::Customer.create params
68+
customer = Mango::Customers.create params
6969
customer = Mango.request :post, '/customers/', api_key, params
7070
```
7171

7272
This 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

Comments
 (0)