AutoApi.GetCommand.new
You're seeing just the function
new
, go back to AutoApi.GetCommand module for more information.
Specs
new(AutoApi.Capability.t(), properties()) :: t()
Creates a new GetCommand structure with the given capability
and properties
.
Example
iex> capability = AutoApi.ClimateCapability
iex> properties = [:hvac_state, :defogging_state]
iex> Elixir.AutoApi.GetCommand.new(capability, properties)
%Elixir.AutoApi.GetCommand{capability: AutoApi.ClimateCapability, properties: [:hvac_state, :defogging_state]}