struct PlaceOS::API::Models::Websocket::Response
- PlaceOS::API::Models::Websocket::Response
- Struct
- Value
- Object
Defined in:
placeos/api/models/websocket/response.crConstructors
Class Method Summary
-
.from_json(input)
Parses a websocket response into a concrete response type.
Instance Method Summary
Constructor Detail
Class Method Detail
def self.from_json(input)
#
Parses a websocket response into a concrete response type.
FIXME currently this is parsing twice - this is a quick hack to get things going. When time allows this should be refactored to work as a single pass, or provide a more efficient method for identifying the message type.