Class: MandateClaw::DSL::Obligation
- Inherits:
-
Struct
- Object
- Struct
- MandateClaw::DSL::Obligation
- Defined in:
- lib/mandate_claw/dsl/obligation.rb
Overview
A positive duty: the named party MUST perform this action. Failure to perform within within triggers the breach consequence.
obligation :pay_invoice, on: :buyer, within: 30.days, breach: :late_payment_penalty
Instance Attribute Summary collapse
-
#breach ⇒ Object
Returns the value of attribute breach.
-
#name ⇒ Object
Returns the value of attribute name.
-
#on ⇒ Object
Returns the value of attribute on.
-
#within ⇒ Object
Returns the value of attribute within.
Instance Attribute Details
#breach ⇒ Object
Returns the value of attribute breach
10 11 12 |
# File 'lib/mandate_claw/dsl/obligation.rb', line 10 def breach @breach end |
#name ⇒ Object
Returns the value of attribute name
10 11 12 |
# File 'lib/mandate_claw/dsl/obligation.rb', line 10 def name @name end |
#on ⇒ Object
Returns the value of attribute on
10 11 12 |
# File 'lib/mandate_claw/dsl/obligation.rb', line 10 def on @on end |
#within ⇒ Object
Returns the value of attribute within
10 11 12 |
# File 'lib/mandate_claw/dsl/obligation.rb', line 10 def within @within end |