class DoorCtrl::Platform
- DoorCtrl::Platform
- DoorCtrl::Application
- ActionController::Base
- Reference
- Object
Overview
details of the underlying platform
Defined in:
controllers/platform.crConstant Summary
-
NET_WIRELESS =
ENV["NET_WIRELESS"]?.presence || "/proc/net/wireless"
-
PARSER_LIST =
["application/json"]
-
details of the underlying platform
-
RESPONDER_LIST =
["application/json"]
-
details of the underlying platform
Class Method Summary
-
.base_route
Helper for obtaining base route
-
.overview(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
Helper methods for performing redirect_to calls
Instance Method Summary
-
#auth_test : String
check if we are authenticated
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
-
#cpu_temp : Float64
The current CPU temperature
-
#overview
Summary of the system
-
#wifi_strength : Float64
The current wifi signal strength
Instance methods inherited from class DoorCtrl::Application
bad_media_type(error) : AC::Error::ContentResponse
bad_media_type,
ensure_authenticated
ensure_authenticated,
invalid_param(error) : AC::Error::ParameterResponse
invalid_param,
set_request_id
set_request_id,
unauthorized(_error) : Nil
unauthorized
Class Method Detail
def self.overview(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
#
Helper methods for performing redirect_to calls