class DoorCtrl::Door
- DoorCtrl::Door
- DoorCtrl::Application
- ActionController::Base
- Reference
- Object
Overview
door control API
Defined in:
controllers/door.crConstant Summary
-
PARSER_LIST =
["application/json"]
-
door control API
-
RESPONDER_LIST =
["application/json"]
-
door control API
Class Method Summary
-
.base_route
Helper for obtaining base route
- .close_relay : GPIO::Line
- .io_chip : GPIO::Chip
- .open_relay : GPIO::Line
- .set_state(door : DoorState) : State
- .status : State
-
.status(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
-
#base_route(*args, **options)
Helper for obtaining base route
-
#base_route(*args, **options, &)
Helper for obtaining base route
-
#set_state(door : DoorState) : State
change the state of the chicken door
-
#status : State
the current state of the chicken door
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.status(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
#
Helper methods for performing redirect_to calls