Class: Placet::Determinant

Inherits:
Struct
  • Object
show all
Defined in:
lib/placet/decision.rb

Overview

決め手になった statement。via は derive による導出の連鎖(concept.md 3.6)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#effectObject

Returns the value of attribute effect

Returns:

  • (Object)

    the current value of effect



5
6
7
# File 'lib/placet/decision.rb', line 5

def effect
  @effect
end

#policyObject

Returns the value of attribute policy

Returns:

  • (Object)

    the current value of policy



5
6
7
# File 'lib/placet/decision.rb', line 5

def policy
  @policy
end

#principalObject

Returns the value of attribute principal

Returns:

  • (Object)

    the current value of principal



5
6
7
# File 'lib/placet/decision.rb', line 5

def principal
  @principal
end

#statementObject

Returns the value of attribute statement

Returns:

  • (Object)

    the current value of statement



5
6
7
# File 'lib/placet/decision.rb', line 5

def statement
  @statement
end

#viaObject

Returns the value of attribute via

Returns:

  • (Object)

    the current value of via



5
6
7
# File 'lib/placet/decision.rb', line 5

def via
  @via
end

Instance Method Details

#to_hObject



6
# File 'lib/placet/decision.rb', line 6

def to_h = super.compact