Class: LogAuditor::Presenter
- Inherits:
-
Object
- Object
- LogAuditor::Presenter
- Defined in:
- lib/log_auditor/presenter.rb
Instance Attribute Summary collapse
-
#requests ⇒ Object
readonly
Returns the value of attribute requests.
-
#uniq_requests ⇒ Object
readonly
Returns the value of attribute uniq_requests.
Instance Method Summary collapse
-
#initialize(data) ⇒ Presenter
constructor
A new instance of Presenter.
- #present! ⇒ Object
Constructor Details
#initialize(data) ⇒ Presenter
Returns a new instance of Presenter.
9 10 11 12 |
# File 'lib/log_auditor/presenter.rb', line 9 def initialize(data) @requests = data[:requests] @uniq_requests = data[:uniq_requests] end |
Instance Attribute Details
#requests ⇒ Object (readonly)
Returns the value of attribute requests.
7 8 9 |
# File 'lib/log_auditor/presenter.rb', line 7 def requests @requests end |
#uniq_requests ⇒ Object (readonly)
Returns the value of attribute uniq_requests.
7 8 9 |
# File 'lib/log_auditor/presenter.rb', line 7 def uniq_requests @uniq_requests end |
Instance Method Details
#present! ⇒ Object
14 15 16 17 18 |
# File 'lib/log_auditor/presenter.rb', line 14 def present! puts requests_table puts '=' * 72 puts uniq_requests_table end |