Class: Mic
- Inherits:
-
Object
- Object
- Mic
- Defined in:
- lib/mic/mic.rb,
lib/mic/search.rb,
lib/mic/version.rb
Defined Under Namespace
Classes: Search
Constant Summary collapse
- VERSION =
"1.0.2"
Class Method Summary collapse
Class Method Details
.where(options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/mic/mic.rb', line 7 def where( = {}) include_segments = [:include_segments] || false a = Mic::Search.new a = a.select_by(:mic, [:mic], include_segments) if [:mic] a = a.select_by(:operating_mic, [:operating_mic], include_segments) if [:operating_mic] a = a.select_by(:market_name, [:market_name], include_segments) if [:market_name] a = a.select_by(:country_code, [:country_code], include_segments) if [:country_code] a end |