class GtfsEngine::UnknownFilters

Attributes

fields[R]

Public Class Methods

new(fields) click to toggle source

@param fields [Array<String>] the names of the unknown fields which the

caller tried to filter with
# File lib/gtfs_engine/exceptions.rb, line 24
def initialize(fields)
  @fields = fields
end

Public Instance Methods

to_hash() click to toggle source
# File lib/gtfs_engine/exceptions.rb, line 28
def to_hash
  fields.each_with_object({}) do |field, hash|
    hash[field] = message
  end
end