Exception: Threatinator::Exceptions::UnknownFeed
- Inherits:
-
StandardError
- Object
- StandardError
- Threatinator::Exceptions::UnknownFeed
- Defined in:
- lib/threatinator/exceptions.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
-
#initialize(provider, name) ⇒ UnknownFeed
constructor
A new instance of UnknownFeed.
Constructor Details
#initialize(provider, name) ⇒ UnknownFeed
Returns a new instance of UnknownFeed.
43 44 45 46 47 |
# File 'lib/threatinator/exceptions.rb', line 43 def initialize(provider, name) @provider = provider @name = name super("Failed to find feed with provider '#{provider}' and name '#{name}'") end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
42 43 44 |
# File 'lib/threatinator/exceptions.rb', line 42 def name @name end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
42 43 44 |
# File 'lib/threatinator/exceptions.rb', line 42 def provider @provider end |