Class: MandateClaw::DSL::Permission

Inherits:
Struct
  • Object
show all
Defined in:
lib/mandate_claw/dsl/permission.rb

Overview

A right: the named party MAY perform this action. Not performing is not a breach.

permission :dispute, on: :buyer, within: 7.days, event: :raise_dispute

Instance Attribute Summary collapse

Instance Attribute Details

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



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

def event
  @event
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



10
11
12
# File 'lib/mandate_claw/dsl/permission.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/permission.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/permission.rb', line 10

def within
  @within
end