Class: Oink::Reports::Request

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/oink/reports/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action, datetime, log_lines, oink_number) ⇒ Request

Returns a new instance of Request.



8
9
10
11
12
13
# File 'lib/oink/reports/request.rb', line 8

def initialize(action, datetime, log_lines, oink_number)
  @action = action
  @datetime = datetime
  @log_lines = log_lines
  @oink_number = oink_number
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



6
7
8
# File 'lib/oink/reports/request.rb', line 6

def action
  @action
end

#datetimeObject

Returns the value of attribute datetime.



6
7
8
# File 'lib/oink/reports/request.rb', line 6

def datetime
  @datetime
end

#log_linesObject

Returns the value of attribute log_lines.



6
7
8
# File 'lib/oink/reports/request.rb', line 6

def log_lines
  @log_lines
end

#oink_numberObject

Returns the value of attribute oink_number.



6
7
8
# File 'lib/oink/reports/request.rb', line 6

def oink_number
  @oink_number
end

Instance Method Details

#<=>(other) ⇒ Object



15
16
17
# File 'lib/oink/reports/request.rb', line 15

def <=>(other)
  self.oink_number <=> other.oink_number
end