Class: SourceMonitor::Events::ItemScrapedEvent
- Inherits:
-
Struct
- Object
- Struct
- SourceMonitor::Events::ItemScrapedEvent
- Defined in:
- lib/source_monitor/events.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
-
#log ⇒ Object
Returns the value of attribute log.
-
#occurred_at ⇒ Object
Returns the value of attribute occurred_at.
-
#result ⇒ Object
Returns the value of attribute result.
-
#source ⇒ Object
Returns the value of attribute source.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item
13 14 15 |
# File 'lib/source_monitor/events.rb', line 13 def item @item end |
#log ⇒ Object
Returns the value of attribute log
13 14 15 |
# File 'lib/source_monitor/events.rb', line 13 def log @log end |
#occurred_at ⇒ Object
Returns the value of attribute occurred_at
13 14 15 |
# File 'lib/source_monitor/events.rb', line 13 def occurred_at @occurred_at end |
#result ⇒ Object
Returns the value of attribute result
13 14 15 |
# File 'lib/source_monitor/events.rb', line 13 def result @result end |
#source ⇒ Object
Returns the value of attribute source
13 14 15 |
# File 'lib/source_monitor/events.rb', line 13 def source @source end |
#status ⇒ Object
Returns the value of attribute status
13 14 15 |
# File 'lib/source_monitor/events.rb', line 13 def status @status end |
Instance Method Details
#success? ⇒ Boolean
14 15 16 |
# File 'lib/source_monitor/events.rb', line 14 def success? status.to_s != "failed" end |