Class: Studio::LinkResolution::Outcome

Inherits:
Struct
  • Object
show all
Defined in:
lib/studio/link_resolution.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



57
58
59
# File 'lib/studio/link_resolution.rb', line 57

def action
  @action
end

#destinationObject

Returns the value of attribute destination

Returns:

  • (Object)

    the current value of destination



57
58
59
# File 'lib/studio/link_resolution.rb', line 57

def destination
  @destination
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



57
58
59
# File 'lib/studio/link_resolution.rb', line 57

def level
  @level
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



57
58
59
# File 'lib/studio/link_resolution.rb', line 57

def message
  @message
end

Instance Method Details

#authenticate?Boolean

Returns:

  • (Boolean)


58
59
60
# File 'lib/studio/link_resolution.rb', line 58

def authenticate?
  action == :authenticate
end

#continue?Boolean

Returns:

  • (Boolean)


62
63
64
# File 'lib/studio/link_resolution.rb', line 62

def continue?
  action == :continue
end

#dead?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/studio/link_resolution.rb', line 66

def dead?
  action == :dead
end

#silent?Boolean

A silent outcome shows the visitor nothing — the "no material difference" re-click.

Returns:

  • (Boolean)


72
73
74
# File 'lib/studio/link_resolution.rb', line 72

def silent?
  message.nil?
end