Class: RSpec::Core::Notifications::DeprecationNotification
- Inherits:
- 
      Struct
        - Object
- Struct
- RSpec::Core::Notifications::DeprecationNotification
 
- Defined in:
- lib/rspec/core/notifications.rb,
 lib/rspec/core/notifications.rb
Overview
The DeprecationNotification is issued by the reporter when a deprecated
part of RSpec is encountered. It represents information about the
deprecated call site.
Instance Attribute Summary (collapse)
- 
  
      - (String) call_site 
  
    An optional call site from which the deprecation was issued. 
- 
  
      - (String) deprecated 
  
    A custom message about the deprecation (alias of message). 
- 
  
      - (String) message 
  
    A custom message about the deprecation. 
- 
  
      - (String) replacement 
  
    An optional replacement for the deprecation. 
Class Method Summary (collapse)
- 
  
      + (void) from_hash(data) 
  
    Convenience way to initialize the notification. 
Instance Attribute Details
- (String) call_site
An optional call site from which the deprecation was issued
| 469 470 471 | # File 'lib/rspec/core/notifications.rb', line 469 def call_site @call_site end | 
- (String) deprecated
A custom message about the deprecation (alias of message)
| 469 470 471 | # File 'lib/rspec/core/notifications.rb', line 469 def deprecated @deprecated end | 
- (String) message
A custom message about the deprecation
| 469 470 471 | # File 'lib/rspec/core/notifications.rb', line 469 def @message end | 
- (String) replacement
An optional replacement for the deprecation
| 469 470 471 | # File 'lib/rspec/core/notifications.rb', line 469 def replacement @replacement end | 
Class Method Details
+ (void) from_hash(data)
Convenience way to initialize the notification
| 475 476 477 | # File 'lib/rspec/core/notifications.rb', line 475 def self.from_hash(data) new data[:deprecated], data[:message], data[:replacement], data[:call_site] end |