Class: Pubid::Bsi::Identifiers::AdoptedEuropeanNorm
Overview
AdoptedEuropeanNorm wraps CEN identifiers
Example: "BS EN 10077-1:2006" where EN 10077-1:2006 is a CEN identifier object
Example: "BS EN ISO 8601:2019" where EN ISO 8601:2019 is a CEN AdoptedEuropeanNorm wrapping ISO
Constant Summary
BritishStandard::TYPED_STAGES
Class Method Summary
collapse
-
.type ⇒ Object
Override self.type to return nil so this polymorphic wrapper is not registered as a base type.
Instance Method Summary
collapse
Class Method Details
.type ⇒ Object
Override self.type to return nil so this polymorphic wrapper is not
registered as a base type. Inherits :bs from BritishStandard which
would otherwise shadow it in Bsi.locate_type(:bs) auto-discovery.
AdoptedEuropeanNorm is constructed explicitly by the builder, not
selected by type-code lookup.
24
25
26
|
# File 'lib/pubid/bsi/identifiers/adopted_european_norm.rb', line 24
def self.type
nil
end
|
Instance Method Details
#date ⇒ Object
37
38
39
|
# File 'lib/pubid/bsi/identifiers/adopted_european_norm.rb', line 37
def date
adopted_identifier&.date if adopted_identifier&.methods&.include?(:date)
end
|
#number ⇒ Object
Delegate common methods to adopted identifier
29
30
31
|
# File 'lib/pubid/bsi/identifiers/adopted_european_norm.rb', line 29
def number
adopted_identifier&.number
end
|
#part ⇒ Object
45
46
47
|
# File 'lib/pubid/bsi/identifiers/adopted_european_norm.rb', line 45
def part
adopted_identifier&.part if adopted_identifier&.methods&.include?(:part)
end
|
#parts ⇒ Object
41
42
43
|
# File 'lib/pubid/bsi/identifiers/adopted_european_norm.rb', line 41
def parts
adopted_identifier&.parts if adopted_identifier&.methods&.include?(:parts)
end
|
#subpart ⇒ Object
49
50
51
|
# File 'lib/pubid/bsi/identifiers/adopted_european_norm.rb', line 49
def subpart
adopted_identifier&.subpart if adopted_identifier&.methods&.include?(:subpart)
end
|
#year ⇒ Object
33
34
35
|
# File 'lib/pubid/bsi/identifiers/adopted_european_norm.rb', line 33
def year
adopted_identifier&.year if adopted_identifier&.methods&.include?(:year)
end
|