Class: ConectaAddressBr::States
- Inherits:
-
Object
- Object
- ConectaAddressBr::States
- Defined in:
- lib/conecta_address_br.rb
Class Method Summary collapse
Class Method Details
.all ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/conecta_address_br.rb', line 5 def self.all [ %w[Acre AC], %w[Alagoas AL], %w[Amapá AP], %w[Amazonas AM], %w[Bahia BA], %w[Ceará CE], ['Distrito Federal', 'DF'], ['Espírito Santo', 'ES'], %w[Goiás GO], %w[Maranhão MA], ['Mato Grosso', 'MT'], ['Mato Grosso do Sul', 'MS'], ['Minas Gerais', 'MG'], %w[Pará PA], %w[Paraíba PB], %w[Paraná PR], %w[Pernambuco PE], %w[Piauí PI], ['Rio de Janeiro', 'RJ'], ['Rio Grande do Norte', 'RN'], ['Rio Grande do Sul', 'RS'], %w[Rondônia RO], %w[Roraima RR], ['Santa Catarina', 'SC'], ['São Paulo', 'SP'], %w[Sergipe SE], %w[Tocantins TO] ] end |
.all_full_names ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/conecta_address_br.rb', line 45 def self.all_full_names states = [] ConectaAddressBr::States.all.each do |state| states.push(state[0]) end return states end |
.all_initials ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/conecta_address_br.rb', line 37 def self.all_initials states = [] ConectaAddressBr::States.all.each do |state| states.push(state[1]) end return states end |