Class: EfoNelfo::V40::VA
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
Instance Method Details
#alternative? ⇒ Boolean
18
19
20
|
# File 'lib/efo_nelfo/v40/va.rb', line 18
def alternative?
type == 'A'
end
|
#alternative_id? ⇒ Boolean
22
23
24
|
# File 'lib/efo_nelfo/v40/va.rb', line 22
def alternative_id?
type == 'V'
end
|
#nrf_id ⇒ Object
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
26
27
28
|
# File 'lib/efo_nelfo/v40/va.rb', line 26
def package_size?
type == 'P'
end
|
#replacement? ⇒ Boolean
14
15
16
|
# File 'lib/efo_nelfo/v40/va.rb', line 14
def replacement?
type == 'E'
end
|