Class: EfoNelfo::V40::VA

Inherits:
PostType show all
Defined in:
lib/efo_nelfo/v40/va.rb

Instance Method Summary collapse

Methods inherited from PostType

for, from, #initialize, parse, #post_type, post_type, #to_csv, version, #version, version_from_class, version_to_namespace

Methods included from HasMany

#add, #associations, #find_association, #has_association?, included, #to_a

Methods included from Properties

#has_property?, included, #initialize_attributes, #properties, #to_a

Constructor Details

This class inherits a constructor from EfoNelfo::PostType

Instance Method Details

#alternative?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/efo_nelfo/v40/va.rb', line 18

def alternative?
  type == 'A'
end

#alternative_id?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/efo_nelfo/v40/va.rb', line 22

def alternative_id?
  type == 'V'
end

#nrf_idObject



10
11
12
# File 'lib/efo_nelfo/v40/va.rb', line 10

def nrf_id
  product_type == 4 && product_number.strip
end

#package_size?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/efo_nelfo/v40/va.rb', line 26

def package_size?
  type == 'P'
end

#replacement?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/efo_nelfo/v40/va.rb', line 14

def replacement?
  type == 'E'
end