Exception: MdnQuery::NoEntryFound
- Defined in:
- lib/mdn_query/errors.rb
Overview
The error when no entries were found.
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
The options used for the search.
-
#query ⇒ String
readonly
The query that was searched for.
Instance Method Summary collapse
-
#initialize(query, options = {}) ⇒ MdnQuery::NoEntryFound
constructor
Creates a new NoEntryFound error.
Constructor Details
#initialize(query, options = {}) ⇒ MdnQuery::NoEntryFound
Creates a new NoEntryFound error.
18 19 20 21 |
# File 'lib/mdn_query/errors.rb', line 18 def initialize(query, = {}) @query = query @options = end |
Instance Attribute Details
#options ⇒ Hash (readonly)
Returns the options used for the search.
11 12 13 |
# File 'lib/mdn_query/errors.rb', line 11 def @options end |
#query ⇒ String (readonly)
Returns the query that was searched for.
8 9 10 |
# File 'lib/mdn_query/errors.rb', line 8 def query @query end |