Class: RailsWayback::RefPolicy::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails_wayback/ref_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#input ⇒ Object

Returns the value of attribute input

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of message



9
10
11
# File 'lib/rails_wayback/ref_policy.rb', line 9

def message
  @message
end

#reason ⇒ Object

Returns the value of attribute reason

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Boolean)


10
11
12
# File 'lib/rails_wayback/ref_policy.rb', line 10

def accepted?
  reason.nil?
end

#rejected? ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/rails_wayback/ref_policy.rb', line 14

def rejected?
  !accepted?
end