Module: BoaVista::Response::Layout::Layout353

Extended by:
Default
Defined in:
lib/boa_vista/response/layout/layout_353.rb

Constant Summary

Constants included from Default

Default::DEFAULT_ATTRIBUTES

Class Method Summary collapse

Methods included from Default

default_attributes, has_conditions?, layout_with_conditions, range_of

Class Method Details

.attributesObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/boa_vista/response/layout/layout_353.rb', line 8

def attributes
  default_attributes.merge(record:                     { range:  77..77  },
                           document_number:            { range:  78..91  },
                           nire:                       { range:  92..102 },
                           company_name:               { range:  103..217 },
                           condition:                  { range:  218..218 },
                           foundation_date:            { range:  219..226 },
                           registration:               { range:  227..240 },
                           registration_status:        { range:  241..241 },
                           address:                    { range:  242..311 },
                           district:                   { range:  312..331 },
                           postal_code:                { range:  332..339 },
                           city:                       { range:  340..379 },
                           uf:                         { range:  380..381 },
                           phone_1:                    { range:  382..401 },
                           phone_2:                    { range:  402..416 },
                           fax:                        { range:  417..431 },
                           ibge_code:                  { range:  432..439 },
                           legal_nature_code:          { range:  440..447 },
                           legal_nature_description:   { range:  448..502 },
                           segment:                    { range:  503..581 },
                           hive_activity_code:         { range:  582..589 },
                           hive_activity_description:  { range:  590..644 })
end

.condition_optionsObject



33
34
35
36
37
38
39
40
41
42
# File 'lib/boa_vista/response/layout/layout_353.rb', line 33

def condition_options
  {
    0 => 'Ativo',
    1 => 'Inapto',
    2 => 'Suspenso',
    6 => 'Baixado',
    7 => 'Nulo',
    8 => 'Cancelado'
  }
end