Class: Pubid::Jis::Builder
- Inherits:
-
Object
- Object
- Pubid::Jis::Builder
- Defined in:
- lib/pubid/jis/builder.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build(parsed_data) ⇒ Object
6 7 8 |
# File 'lib/pubid/jis/builder.rb', line 6 def self.build(parsed_data) new.build(parsed_data) end |
Instance Method Details
#build(data) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pubid/jis/builder.rb', line 10 def build(data) # Handle supplement case first if data[:amendment] return build_amendment(data) elsif data[:explanation] return build_explanation(data) end # Build regular identifier build_single_identifier(data) end |