Class: Browserctl::Detectors::AuthRequired::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/browserctl/detectors/auth_required.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



24
25
26
# File 'lib/browserctl/detectors/auth_required.rb', line 24

def code
  @code
end

#reasonObject

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



24
25
26
# File 'lib/browserctl/detectors/auth_required.rb', line 24

def reason
  @reason
end

#suggested_flowObject

Returns the value of attribute suggested_flow

Returns:

  • (Object)

    the current value of suggested_flow



24
25
26
# File 'lib/browserctl/detectors/auth_required.rb', line 24

def suggested_flow
  @suggested_flow
end

#triggeredObject

Returns the value of attribute triggered

Returns:

  • (Object)

    the current value of triggered



24
25
26
# File 'lib/browserctl/detectors/auth_required.rb', line 24

def triggered
  @triggered
end

Instance Method Details

#to_hObject



25
26
27
# File 'lib/browserctl/detectors/auth_required.rb', line 25

def to_h
  { triggered: triggered, code: code, reason: reason, suggested_flow: suggested_flow }.compact
end