Class: SourceMonitor::Events::ItemScrapedEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/source_monitor/events.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#itemObject

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



13
14
15
# File 'lib/source_monitor/events.rb', line 13

def item
  @item
end

#logObject

Returns the value of attribute log

Returns:

  • (Object)

    the current value of log



13
14
15
# File 'lib/source_monitor/events.rb', line 13

def log
  @log
end

#occurred_atObject

Returns the value of attribute occurred_at

Returns:

  • (Object)

    the current value of occurred_at



13
14
15
# File 'lib/source_monitor/events.rb', line 13

def occurred_at
  @occurred_at
end

#resultObject

Returns the value of attribute result

Returns:

  • (Object)

    the current value of result



13
14
15
# File 'lib/source_monitor/events.rb', line 13

def result
  @result
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



13
14
15
# File 'lib/source_monitor/events.rb', line 13

def source
  @source
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



13
14
15
# File 'lib/source_monitor/events.rb', line 13

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/source_monitor/events.rb', line 14

def success?
  status.to_s != "failed"
end