class Mochizuki::Configurable::Configuration

Attributes

alarm_threshold[RW]
api_host[RW]
api_port[RW]
bot_token[RW]
building[RW]
campus[RW]
channel[RW]
dorm[RW]
floor[RW]
query_interval[RW]

Public Class Methods

new() click to toggle source
# File lib/mochizuki/configurable.rb, line 29
def initialize
  @bot_token = nil
  @channel = nil

  @api_host = '202.120.163.129' # https://nyglzx.tongji.edu.cn
  @api_port = '88'

  @query_interval = '300s'
  @alarm_threshold = '60' # kWh

  # shitty names from legacy code
  @campus = nil   # -> drlouming
  @building = nil # -> drceng
  @floor = nil    # -> dr_ceng
  @dorm = nil     # -> drfangjian
end