Sha256: 6723efbc484f0fd04d1c3df3850570a5de108a23692b5602358f3a49ecac15d9

Contents?: true

Size: 580 Bytes

Versions: 1

Compression:

Stored size: 580 Bytes

Contents

class Mic

  require 'csv'

  class << self

    def where(options = {})
      include_segments = options[:include_segments] || false
      a = Mic::Search.new
      a = a.select_by(:mic, options[:mic], include_segments) if options[:mic]
      a = a.select_by(:operating_mic, options[:operating_mic], include_segments) if options[:operating_mic]
      a = a.select_by(:market_name, options[:market_name], include_segments) if options[:market_name]
      a = a.select_by(:country_code, options[:country_code], include_segments) if options[:country_code]
      a
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mic-1.0.2 lib/mic/mic.rb