Exception: Minisky::FieldNotSetError
- Defined in:
- lib/minisky/errors.rb
Overview
Raised by Requests#fetch_all when the field parameter isn’t set.
The message of the exception lists the fields available in the first fetched page.
Instance Attribute Summary collapse
-
#fields ⇒ Array<String>
readonly
List of fields in the response data.
Instance Method Summary collapse
-
#initialize(fields) ⇒ FieldNotSetError
constructor
A new instance of FieldNotSetError.
Constructor Details
#initialize(fields) ⇒ FieldNotSetError
Returns a new instance of FieldNotSetError.
117 118 119 120 |
# File 'lib/minisky/errors.rb', line 117 def initialize(fields) @fields = fields super("Field parameter not provided; available fields: #{@fields.inspect}") end |
Instance Attribute Details
#fields ⇒ Array<String> (readonly)
Returns list of fields in the response data.
113 114 115 |
# File 'lib/minisky/errors.rb', line 113 def fields @fields end |