Class: RequestInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#arrival_timeObject

Returns the value of attribute arrival_time

Returns:

  • (Object)

    the current value of arrival_time



7
8
9
# File 'lib/sisfc/vm.rb', line 7

def arrival_time
  @arrival_time
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



7
8
9
# File 'lib/sisfc/vm.rb', line 7

def request
  @request
end

#service_timeObject

Returns the value of attribute service_time

Returns:

  • (Object)

    the current value of service_time



7
8
9
# File 'lib/sisfc/vm.rb', line 7

def service_time
  @service_time
end

Instance Method Details

#<=>(o) ⇒ Object



9
10
11
# File 'lib/sisfc/vm.rb', line 9

def <=> (o)
  arrival_time <=> o.arrival_time
end