docs/query.md in evil-client-0.3.0 vs docs/query.md in evil-client-0.3.1
- old
+ new
@@ -28,10 +28,10 @@
## Model-Based Queries
Use [models][model] to provide validation of query data:
```ruby
-class Cat < Evil::Client::Model
+class Cat < Evil::Struct
attribute :name, type: Dry::Types["strict.string"], optional: true
attribute :age, type: Dry::Types["strict.int"], default: proc { 0 }
attribute :color, type: Dry::Types["strict.string"]
end
```