Class: Rails::Hyperdrive::CompanionDiscovery::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails/hyperdrive/companion_discovery.rb

Overview

Outcome of a run. status: :online — served live or fresh-cached results :stale — network failed; served an expired cache :unavailable — network failed and no cache to fall back to

Instance Attribute Summary collapse

Instance Attribute Details

#age_secondsObject

Returns the value of attribute age_seconds

Returns:

  • (Object)

    the current value of age_seconds



38
39
40
# File 'lib/rails/hyperdrive/companion_discovery.rb', line 38

def age_seconds
  @age_seconds
end

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



38
39
40
# File 'lib/rails/hyperdrive/companion_discovery.rb', line 38

def detail
  @detail
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



38
39
40
# File 'lib/rails/hyperdrive/companion_discovery.rb', line 38

def status
  @status
end

#suggestionsObject

Returns the value of attribute suggestions

Returns:

  • (Object)

    the current value of suggestions



38
39
40
# File 'lib/rails/hyperdrive/companion_discovery.rb', line 38

def suggestions
  @suggestions
end

#warningsObject

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



38
39
40
# File 'lib/rails/hyperdrive/companion_discovery.rb', line 38

def warnings
  @warnings
end