Module: DjiMqttConnect::Mixins::NetworkStateType
- Defined in:
- lib/dji_mqtt_connect/mixins/network_state_type.rb
Instance Method Summary collapse
Instance Method Details
#humanized_type ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/dji_mqtt_connect/mixins/network_state_type.rb', line 6 def humanized_type type_key = case type when Types::NETWORK_STATE_TYPE_4G "4G" when Types::NETWORK_STATE_TYPE_ETHERNET "Ethernet" end I18n.t(type_key.downcase, scope: "dji_mqtt_connect.dock_network_state.type", default: type_key) end |