Class: MandateClaw::DSL::Obligation

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#breachObject

Returns the value of attribute breach

Returns:

  • (Object)

    the current value of breach



10
11
12
# File 'lib/mandate_claw/dsl/obligation.rb', line 10

def breach
  @breach
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/mandate_claw/dsl/obligation.rb', line 10

def name
  @name
end

#onObject

Returns the value of attribute on

Returns:

  • (Object)

    the current value of on



10
11
12
# File 'lib/mandate_claw/dsl/obligation.rb', line 10

def on
  @on
end

#withinObject

Returns the value of attribute within

Returns:

  • (Object)

    the current value of within



10
11
12
# File 'lib/mandate_claw/dsl/obligation.rb', line 10

def within
  @within
end