Exception: PinterestURLNormalizer::Error

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

Overview

An invalid URL or unsupported Pinterest path.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ Error

Returns a new instance of Error.



58
59
60
61
# File 'lib/pinterest_url_normalizer.rb', line 58

def initialize(code, message)
  @code = code
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



56
57
58
# File 'lib/pinterest_url_normalizer.rb', line 56

def code
  @code
end