class TemperatureConverter

Public Instance Methods

commandline_temperature(value) click to toggle source
# File lib/temperature_converter.rb, line 12
def commandline_temperature value
        cmdreader = CommandlineReader.new value
        cmdreader.read
end
file_temperature(file) click to toggle source
# File lib/temperature_converter.rb, line 17
def file_temperature file
        filereader = FileReader.new
        filereader.read(file)
end
mqtt_reader(ttn_host, port, username, password, sensor_id) click to toggle source
# File lib/temperature_converter.rb, line 27
def mqtt_reader (ttn_host, port, username, password, sensor_id)
        mqttreader = MQTTReader.new
        mqttreader.read(ttn_host, port, username, password, sensor_id)
end
to_html() click to toggle source
# File lib/temperature_converter.rb, line 42
def to_html
        htmlprint = PrintHtml.new
        htmlprint.print
end
to_json() click to toggle source
# File lib/temperature_converter.rb, line 37
def to_json
        jsonprint = PrintJson.new
        jsonprint.print
end
to_text() click to toggle source
# File lib/temperature_converter.rb, line 32
def to_text
        textprint = PrintText.new
        textprint.print
end
url_temperature(url) click to toggle source
# File lib/temperature_converter.rb, line 22
def url_temperature url
        urlreader = URLReader.new
        urlreader.read(url)
end