Class: Pray::TrustPolicy
- Inherits:
-
Struct
- Object
- Struct
- Pray::TrustPolicy
- Defined in:
- lib/pray/trust.rb
Instance Attribute Summary collapse
-
#default_rule ⇒ Object
Returns the value of attribute default_rule.
-
#rules ⇒ Object
Returns the value of attribute rules.
Instance Method Summary collapse
-
#initialize(default_rule: TrustRule.new, rules: []) ⇒ TrustPolicy
constructor
A new instance of TrustPolicy.
Constructor Details
#initialize(default_rule: TrustRule.new, rules: []) ⇒ TrustPolicy
Returns a new instance of TrustPolicy.
20 21 22 |
# File 'lib/pray/trust.rb', line 20 def initialize(default_rule: TrustRule.new, rules: []) super end |
Instance Attribute Details
#default_rule ⇒ Object
Returns the value of attribute default_rule
19 20 21 |
# File 'lib/pray/trust.rb', line 19 def default_rule @default_rule end |
#rules ⇒ Object
Returns the value of attribute rules
19 20 21 |
# File 'lib/pray/trust.rb', line 19 def rules @rules end |