Exception: QueryStream::AmbiguousQueryWarning
- Defined in:
- lib/query_stream/errors.rb
Overview
一件検索で複数件ヒット
Instance Attribute Summary collapse
-
#count ⇒ Integer
readonly
ヒット件数.
-
#location ⇒ String
readonly
ソースファイル名と行番号.
-
#query ⇒ String
readonly
元の QueryStream 記法.
Instance Method Summary collapse
-
#initialize(msg = nil, query: nil, location: nil, count: nil) ⇒ AmbiguousQueryWarning
constructor
A new instance of AmbiguousQueryWarning.
Constructor Details
#initialize(msg = nil, query: nil, location: nil, count: nil) ⇒ AmbiguousQueryWarning
Returns a new instance of AmbiguousQueryWarning.
82 83 84 85 86 87 |
# File 'lib/query_stream/errors.rb', line 82 def initialize(msg = nil, query: nil, location: nil, count: nil) super(msg || "一件検索で複数件ヒット(#{count}件): #{query}") @query = query @location = location @count = count end |
Instance Attribute Details
#count ⇒ Integer (readonly)
ヒット件数
79 80 81 |
# File 'lib/query_stream/errors.rb', line 79 def count @count end |
#location ⇒ String (readonly)
ソースファイル名と行番号
79 80 81 |
# File 'lib/query_stream/errors.rb', line 79 def location @location end |
#query ⇒ String (readonly)
元の QueryStream 記法
79 80 81 |
# File 'lib/query_stream/errors.rb', line 79 def query @query end |