Exception: Parliament::OpenSearch::DescriptionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/parliament/open_search/description_error.rb

Overview

An error raised when there is an issue processing an OpenSearch description file. This could be raised when the URL provided is invalid, or when we are unable to find a URL template for future requests.

Since:

  • 0.2.3

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(description_url) ⇒ DescriptionError

Returns a new instance of DescriptionError.

Parameters:

  • description_url (String)

    the description url that caused the Parliament::OpenSearchDescriptionError.

Since:

  • 0.2.3



13
14
15
# File 'lib/parliament/open_search/description_error.rb', line 13

def initialize(description_url)
  @url = description_url
end

Instance Attribute Details

#urlObject (readonly)

the description url that caused the Parliament::OpenSearchDescriptionError.

Returns:

  • (Object)

    the current value of url

Since:

  • 0.2.3



9
10
11
# File 'lib/parliament/open_search/description_error.rb', line 9

def url
  @url
end