Sha256: 566c7e66bf88a8f60705dc74af106ed82a13494782f0864de050a6d47ac03450
Contents?: true
Size: 1.11 KB
Versions: 4
Compression:
Stored size: 1.11 KB
Contents
# isomorfeus-operation Operations for Isomorfeus. ### Community and Support At the [Isomorfeus Framework Project](http://isomorfeus.com) ### Usage there are 3 kinds of Operations: - LucidQuickOp - LucidOperation - LucidLocalOperation ```ruby class MyQuickOp < LucidQuickOp::Base prop :a_prop op do props.a_prop == 'a_value' # do something end end MyQuickOp.promise_run(a_prop: 'a_value') # or MyQuickOp.promise_run(props: { a_prop: 'a_value' }) ``` Quick remote procedure call, always executed on the server. LucidOperation too is always executed on the Server. It allows to define Operations in gherkin human language style: ```ruby class MyOperation < LucidOperation::Base prop :a_prop procedure <<~TEXT Given a bird When it flies Then be happy TEXT Given /a bird/ do props.a_prop == 'a_value' end # etc ... end MyOperation.promise_run(a_prop: 'a_value') # or MyOperation.promise_run(props: { a_prop: 'a_value' }) ``` LucidLocalOperation is the same as LucidOperation, except its always executed locally, wherever that may be. Its barely tested so far and no other docs.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
isomorfeus-operation-1.0.0.zeta14 | README.md |
isomorfeus-operation-1.0.0.zeta13 | README.md |
isomorfeus-operation-1.0.0.zeta12 | README.md |
isomorfeus-operation-1.0.0.zeta11 | README.md |