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.



46
47
48
49
50
# File 'lib/threatinator/exceptions.rb', line 46

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.



45
46
47
# File 'lib/threatinator/exceptions.rb', line 45

def name
  @name
end

#providerObject (readonly)

Returns the value of attribute provider.



45
46
47
# File 'lib/threatinator/exceptions.rb', line 45

def provider
  @provider
end