Class: RailsWayback::RefPolicy::Result
- Inherits:
-
Struct
- Object
- Struct
- RailsWayback::RefPolicy::Result
- Defined in:
- lib/rails_wayback/ref_policy.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
-
#message ⇒ Object
Returns the value of attribute message.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#sha ⇒ Object
Returns the value of attribute sha.
-
#trusted_refs ⇒ Object
Returns the value of attribute trusted_refs.
Instance Method Summary collapse
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input
9 10 11 |
# File 'lib/rails_wayback/ref_policy.rb', line 9 def input @input end |
#message ⇒ Object
Returns the value of attribute message
9 10 11 |
# File 'lib/rails_wayback/ref_policy.rb', line 9 def @message end |
#reason ⇒ Object
Returns the value of attribute reason
9 10 11 |
# File 'lib/rails_wayback/ref_policy.rb', line 9 def reason @reason end |
#sha ⇒ Object
Returns the value of attribute sha
9 10 11 |
# File 'lib/rails_wayback/ref_policy.rb', line 9 def sha @sha end |
#trusted_refs ⇒ Object
Returns the value of attribute trusted_refs
9 10 11 |
# File 'lib/rails_wayback/ref_policy.rb', line 9 def trusted_refs @trusted_refs end |
Instance Method Details
#accepted? ⇒ Boolean
10 11 12 |
# File 'lib/rails_wayback/ref_policy.rb', line 10 def accepted? reason.nil? end |
#rejected? ⇒ Boolean
14 15 16 |
# File 'lib/rails_wayback/ref_policy.rb', line 14 def rejected? !accepted? end |