Class: Unipept::UrlFormatter
Class Method Summary collapse
Instance Method Summary collapse
-
#convert(data, _first) ⇒ String
Converts the given input data to an HTML page that contains the Unipept visualizations.
- #footer ⇒ Object
- #header(_data, _fasta_mapper = nil) ⇒ Object
-
#type ⇒ String
The type of the current formatter: html.
Methods inherited from Formatter
available, default, #format, formatters, #group_by_first_key, #integrate_fasta_headers, new_for_format, register
Class Method Details
.hidden? ⇒ Boolean
388 389 390 |
# File 'lib/formatters.rb', line 388 def self.hidden? false end |
Instance Method Details
#convert(data, _first) ⇒ String
Converts the given input data to an HTML page that contains the Unipept visualizations
407 408 409 |
# File 'lib/formatters.rb', line 407 def convert(data, _first) "#{data[0]['gist'].sub!('https://gist.github.com/', 'https://bl.ocks.org/')}\n" end |
#footer ⇒ Object
396 397 398 |
# File 'lib/formatters.rb', line 396 def '' end |
#header(_data, _fasta_mapper = nil) ⇒ Object
392 393 394 |
# File 'lib/formatters.rb', line 392 def header(_data, _fasta_mapper = nil) '' end |
#type ⇒ String
Returns The type of the current formatter: html.
384 385 386 |
# File 'lib/formatters.rb', line 384 def type 'url' end |