Skip to content

Commit 956ff8a

Browse files
author
Solon Yang
committed
minor fix to README.md
1 parent e0dc365 commit 956ff8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ ap @shipment
153153
# "reference_2" => "",
154154
# "rates_url" => "https://api.goshippo.com/v1/shipments/a336daf87a8e442992a68daa6622758f/rates/",
155155
# "messages" => [ ] # ommitted for brevity,
156-
# "rates" => [ ] # ommitted for brevity.
156+
# "rates_list" => [ ] # ommitted for brevity.
157157
# }
158158
```
159159

@@ -164,7 +164,7 @@ In the case when the API returns a hash with one of the hash values being an arr
164164
In the example below we are showing the result of such transformation where the `rates_list` contains a list of fully constructed objects of type `Shippo::Rate` after being coerced from a hash.
165165

166166
```ruby
167-
ap @shipment.rates.first
167+
ap @shipment.rates_list.first
168168
# =>
169169
# {
170170
# "shipment" => "20f25e44b16b4051b6dd910cb66fd27b",

0 commit comments

Comments
 (0)