Class: TestingYourLegacy::LogEntry

Inherits:
Struct
  • Object
show all
Includes:
Comparable
Defined in:
lib/testing_your_legacy/testing_your_legacy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#protocolObject

Returns the value of attribute protocol

Returns:

  • (Object)

    the current value of protocol



2
3
4
# File 'lib/testing_your_legacy/testing_your_legacy.rb', line 2

def protocol
  @protocol
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



2
3
4
# File 'lib/testing_your_legacy/testing_your_legacy.rb', line 2

def url
  @url
end

#visitsObject

Returns the value of attribute visits

Returns:

  • (Object)

    the current value of visits



2
3
4
# File 'lib/testing_your_legacy/testing_your_legacy.rb', line 2

def visits
  @visits
end

Instance Method Details

#<=>(other) ⇒ Object



6
7
8
# File 'lib/testing_your_legacy/testing_your_legacy.rb', line 6

def <=>(other)
  visits <=> other.visits
end