Exception: Threatinator::Exceptions::UnknownFeed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/threatinator/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



42
43
44
# File 'lib/threatinator/exceptions.rb', line 42

def name
  @name
end

#providerObject (readonly)

Returns the value of attribute provider.



42
43
44
# File 'lib/threatinator/exceptions.rb', line 42

def provider
  @provider
end