README.md in atacama-0.1.4 vs README.md in atacama-0.1.5

- old
+ new

@@ -28,10 +28,11 @@ The basic object is `Contract`. It enforces type contracts by utilizing `dry-types`. ``` class UserFetcher < Atacama::Contract option :id, Types::Strict::Number.gt(0) + returns Types.Instance(User) def call User.find(id) end end @@ -43,10 +44,11 @@ of changes to execute. ``` class UserFetcher < Atacama::Step option :id, type: Types::Strict::Number.gt(0) + returns Types.Option(model: Types.Instance(User)) def call Option(model: User.find(id)) end end @@ -58,11 +60,13 @@ $redis.avg('duration', Time.now - start) end end class UpdateUser < Atacama::Transformer - option :model, type: Types::Instance(User) + option :model, type: Types.Instance(User) option :attributes, type: Types::Strict::Hash + + returns_option :model, Types.Instance(User) step :duration, with: Duration do step :find, with: UserFetcher step :save end