File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class DeserializablePost < JSONAPI::Deserializable::Post
6262 end
6363
6464 # or
65- type # implicitly expanded to `type { |t| field type: t }
65+ type # implicitly expanded to `type { |t| field type: t }`
6666end
6767```
6868
@@ -77,11 +77,11 @@ Example:
7777class DeserializablePost < JSONAPI ::Deserializable ::Post
7878 # ...
7979 id do |i |
80- field primary_id: id .to_i
80+ field primary_id: i .to_i
8181 end
8282
8383 # or
84- id # implicitly expanded to `id { |i| field id: i }
84+ id # implicitly expanded to `id { |i| field id: i }`
8585end
8686```
8787
@@ -104,7 +104,7 @@ class DeserializablePost < JSONAPI::Deserializable::Post
104104 end
105105
106106 # or
107- attribute :date # implicitly expanded to `attribute :date { |d| field date: d }
107+ attribute :date # implicitly expanded to `attribute( :date) { |d| field date: d }`
108108end
109109```
110110
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ layout: guides
66## What is jsonapi-rb?
77[ jsonapi-rb] ( https://github.com/jsonapi-rb/jsonapi-rb ) is a ruby library for
88producing and consuming [ JSON API] ( http://jsonapi.org ) documents. It is cleanly
9- layered, has an intuitive yet intention -stating API, and no magic.
9+ layered, has an intuitive yet intent -stating API, and no magic.
1010
1111It is comprised of 4 independent micro-libraries:
1212
You can’t perform that action at this time.
0 commit comments