Skip to content

Commit 547cac4

Browse files
committed
Fix readme examples
1 parent 7acb14d commit 547cac4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ EdLink::School.find(id: 'e8b207c7-7b80-477c-ae7b-6020de91d46f')
113113
```ruby
114114
# Returns only the "name" and "id" fields for schools whose name starts
115115
# with the letter "z":
116-
params: {
116+
params = {
117117
fields: 'name, id',
118118
filter: {
119119
name: [
@@ -140,11 +140,11 @@ EdLink::School.all(params: params)
140140
# Returns only the "name" and "id" fields and expands the "district_id" field for
141141
# a single school. (Notice that we are including the expanded field name "district")
142142
# in the "fields" param.
143-
params: {
143+
params = {
144144
expand: 'district',
145145
fields: 'name, id, district'
146146
}
147-
EdLink::School.find(id: 'e8b207c7-7b80-477c-ae7b-6020de91d46f')
147+
EdLink::School.find(id: 'e8b207c7-7b80-477c-ae7b-6020de91d46f', params: params)
148148
#=> {
149149
# :$data=> [
150150
# {
@@ -166,7 +166,7 @@ EdLink::School.find(id: 'e8b207c7-7b80-477c-ae7b-6020de91d46f')
166166
```ruby
167167
# Returns only 1 result per "page" and illustrates the $next key for
168168
# pagination.
169-
params: {
169+
params= {
170170
first: 1,
171171
fields: 'name, id'
172172
}

0 commit comments

Comments
 (0)