File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ EdLink::School.find(id: 'e8b207c7-7b80-477c-ae7b-6020de91d46f')
113
113
``` ruby
114
114
# Returns only the "name" and "id" fields for schools whose name starts
115
115
# with the letter "z":
116
- params: {
116
+ params = {
117
117
fields: ' name, id' ,
118
118
filter: {
119
119
name: [
@@ -140,11 +140,11 @@ EdLink::School.all(params: params)
140
140
# Returns only the "name" and "id" fields and expands the "district_id" field for
141
141
# a single school. (Notice that we are including the expanded field name "district")
142
142
# in the "fields" param.
143
- params: {
143
+ params = {
144
144
expand: ' district' ,
145
145
fields: ' name, id, district'
146
146
}
147
- EdLink ::School .find(id: ' e8b207c7-7b80-477c-ae7b-6020de91d46f' )
147
+ EdLink ::School .find(id: ' e8b207c7-7b80-477c-ae7b-6020de91d46f' , params: params )
148
148
# => {
149
149
# :$data=> [
150
150
# {
@@ -166,7 +166,7 @@ EdLink::School.find(id: 'e8b207c7-7b80-477c-ae7b-6020de91d46f')
166
166
``` ruby
167
167
# Returns only 1 result per "page" and illustrates the $next key for
168
168
# pagination.
169
- params: {
169
+ params= {
170
170
first: 1 ,
171
171
fields: ' name, id'
172
172
}
You can’t perform that action at this time.
0 commit comments