Class: SourceMonitor::Fetching::Completion::EventPublisher::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/source_monitor/fetching/completion/event_publisher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



8
9
10
# File 'lib/source_monitor/fetching/completion/event_publisher.rb', line 8

def error
  @error
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



8
9
10
# File 'lib/source_monitor/fetching/completion/event_publisher.rb', line 8

def status
  @status
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/source_monitor/fetching/completion/event_publisher.rb', line 9

def success?
  status != :failed
end