class TemperatureOutput

Attributes

temp[R]

Public Class Methods

show_output(converted_temp) click to toggle source
# File lib/temperature_output.rb, line 15
def self.show_output(converted_temp)
        show_to_text(converted_temp)
        show_to_html(converted_temp)
        show_to_json(converted_temp)
end
show_to_html(converted_temp) click to toggle source
# File lib/temperature_output.rb, line 27
def self.show_to_html(converted_temp)
        puts '>to_html'
        puts TemperatureOutputToHtml.to_html(converted_temp[0], converted_temp[1], converted_temp[2])
        puts ''
end
show_to_json(converted_temp) click to toggle source
# File lib/temperature_output.rb, line 33
def self.show_to_json(converted_temp)
        puts '>to_json'
        puts TemperatureOutputToJson.to_json(converted_temp[0], converted_temp[1], converted_temp[2])
        puts ''
end
show_to_text(converted_temp) click to toggle source
# File lib/temperature_output.rb, line 21
def self.show_to_text(converted_temp)
                puts '>to_text'
                puts TemperatureOutputToText.to_text(converted_temp[0], converted_temp[1], converted_temp[2])
                puts ''
end