Class: RSpec::Proverbs::Notification

Inherits:
Struct
  • Object
show all
Defined in:
lib/proverbs/rspec/notification.rb

Overview

In RSpec, notifications are value objects that are passed to formatters to provide those formatters with information about a particular event.

Instance Attribute Summary collapse

Instance Attribute Details

#exampleObject

Returns the value of attribute example

Returns:

  • (Object)

    the current value of example



5
6
7
# File 'lib/proverbs/rspec/notification.rb', line 5

def example
  @example
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



5
6
7
# File 'lib/proverbs/rspec/notification.rb', line 5

def message
  @message
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



5
6
7
# File 'lib/proverbs/rspec/notification.rb', line 5

def options
  @options
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



5
6
7
# File 'lib/proverbs/rspec/notification.rb', line 5

def type
  @type
end