Class: Pubid::Ccsds::Renderer::Base
- Inherits:
-
Pubid::Core::Renderer::Base
- Object
- Pubid::Core::Renderer::Base
- Pubid::Ccsds::Renderer::Base
- Defined in:
- lib/pubid/ccsds/renderer/base.rb
Direct Known Subclasses
Constant Summary collapse
- TYPE =
"".freeze
Instance Method Summary collapse
- #render_book_color(book_color, _opts, _params) ⇒ Object
- #render_edition(edition, _opts, _params) ⇒ Object
- #render_identifier(params) ⇒ Object
- #render_language(language, opts, _params) ⇒ Object
- #render_part(part, _opts, _params) ⇒ Object
- #render_retired(retired, _opts, _params) ⇒ Object
Instance Method Details
#render_book_color(book_color, _opts, _params) ⇒ Object
13 14 15 |
# File 'lib/pubid/ccsds/renderer/base.rb', line 13 def render_book_color(book_color, _opts, _params) "-#{book_color}" end |
#render_edition(edition, _opts, _params) ⇒ Object
17 18 19 |
# File 'lib/pubid/ccsds/renderer/base.rb', line 17 def render_edition(edition, _opts, _params) "-#{edition}" end |
#render_identifier(params) ⇒ Object
5 6 7 |
# File 'lib/pubid/ccsds/renderer/base.rb', line 5 def render_identifier(params) "%{publisher} %{series}%{number}%{part}%{book_color}%{edition}%{retired}" % params end |
#render_language(language, opts, _params) ⇒ Object
25 26 27 |
# File 'lib/pubid/ccsds/renderer/base.rb', line 25 def render_language(language, opts, _params) " - #{language} Translated" end |
#render_part(part, _opts, _params) ⇒ Object
9 10 11 |
# File 'lib/pubid/ccsds/renderer/base.rb', line 9 def render_part(part, _opts, _params) ".#{part}" end |
#render_retired(retired, _opts, _params) ⇒ Object
21 22 23 |
# File 'lib/pubid/ccsds/renderer/base.rb', line 21 def render_retired(retired, _opts, _params) "-S" if retired end |