Class: Oink::Reports::Request
- Inherits:
-
Object
- Object
- Oink::Reports::Request
- Includes:
- Comparable
- Defined in:
- lib/oink/reports/request.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#datetime ⇒ Object
Returns the value of attribute datetime.
-
#log_lines ⇒ Object
Returns the value of attribute log_lines.
-
#oink_number ⇒ Object
Returns the value of attribute oink_number.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(action, datetime, log_lines, oink_number) ⇒ Request
constructor
A new instance of Request.
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
#action ⇒ Object
Returns the value of attribute action.
6 7 8 |
# File 'lib/oink/reports/request.rb', line 6 def action @action end |
#datetime ⇒ Object
Returns the value of attribute datetime.
6 7 8 |
# File 'lib/oink/reports/request.rb', line 6 def datetime @datetime end |
#log_lines ⇒ Object
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_number ⇒ Object
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 |