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
11 12 13 |
# File 'lib/gtfs_engine/exceptions.rb', line 11 def initialize(fields) @fields = fields end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
7 8 9 |
# File 'lib/gtfs_engine/exceptions.rb', line 7 def fields @fields end |
Instance Method Details
#to_hash ⇒ Object
15 16 17 18 19 |
# File 'lib/gtfs_engine/exceptions.rb', line 15 def to_hash fields.each_with_object({}) do |field, hash| hash[field] = end end |