Class: SourceMonitor::Events::ItemCreatedEvent
- Inherits:
-
Struct
- Object
- Struct
- SourceMonitor::Events::ItemCreatedEvent
- Defined in:
- lib/source_monitor/events.rb
Instance Attribute Summary collapse
-
#entry ⇒ Object
Returns the value of attribute entry.
-
#item ⇒ Object
Returns the value of attribute item.
-
#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
#entry ⇒ Object
Returns the value of attribute entry
7 8 9 |
# File 'lib/source_monitor/events.rb', line 7 def entry @entry end |
#item ⇒ Object
Returns the value of attribute item
7 8 9 |
# File 'lib/source_monitor/events.rb', line 7 def item @item end |
#occurred_at ⇒ Object
Returns the value of attribute occurred_at
7 8 9 |
# File 'lib/source_monitor/events.rb', line 7 def occurred_at @occurred_at end |
#result ⇒ Object
Returns the value of attribute result
7 8 9 |
# File 'lib/source_monitor/events.rb', line 7 def result @result end |
#source ⇒ Object
Returns the value of attribute source
7 8 9 |
# File 'lib/source_monitor/events.rb', line 7 def source @source end |
#status ⇒ Object
Returns the value of attribute status
7 8 9 |
# File 'lib/source_monitor/events.rb', line 7 def status @status end |
Instance Method Details
#created? ⇒ Boolean
8 9 10 |
# File 'lib/source_monitor/events.rb', line 8 def created? status.to_s == "created" end |