Class: PostmonRuby::GemOutput

Inherits:
Object
  • Object
show all
Defined in:
lib/postmon_ruby/gem_output.rb

Class Method Summary collapse

Class Method Details

.get_info(options) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/postmon_ruby/gem_output.rb', line 3

def self.get_info(options)
  unless options[:cep].nil?
    cep(options[:cep])
  end

  unless options[:cidade].nil?
    cidade(options[:cidade].first, options[:cidade].last)
  end

  unless options[:estado].nil?
    estado(options[:estado])
  end

  unless options[:rastreio].nil?
    rastreio(options[:rastreio])
  end      
end