Class: GtfsEngine::UnknownFilters
- Defined in:
- lib/gtfs_engine/exceptions.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Instance Method Summary collapse
-
#initialize(fields) ⇒ UnknownFilters
constructor
caller tried to filter with.
- #to_hash ⇒ Object
Constructor Details
#initialize(fields) ⇒ UnknownFilters
caller tried to filter with
24 25 26 |
# File 'lib/gtfs_engine/exceptions.rb', line 24 def initialize(fields) @fields = fields end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
20 21 22 |
# File 'lib/gtfs_engine/exceptions.rb', line 20 def fields @fields end |
Instance Method Details
#to_hash ⇒ Object
28 29 30 31 32 |
# File 'lib/gtfs_engine/exceptions.rb', line 28 def to_hash fields.each_with_object({}) do |field, hash| hash[field] = end end |