Class: Samsara::Reports::Vehicles::AsyncClient

Inherits:
Object
  • Object
show all
Defined in:
lib/samsara_api/reports/vehicles/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request_client:) ⇒ Samsara::Reports::Vehicles::AsyncClient

Parameters:



33
34
35
36
# File 'lib/samsara_api/reports/vehicles/client.rb', line 33

def initialize(request_client:)
  @idling = Samsara::Reports::Vehicles::AsyncIdlingClient.new(request_client: request_client)
  @fuel_energy = Samsara::Reports::Vehicles::AsyncFuelEnergyClient.new(request_client: request_client)
end

Instance Attribute Details

#fuel_energySamsara::Reports::Vehicles::AsyncFuelEnergyClient (readonly)



28
29
30
# File 'lib/samsara_api/reports/vehicles/client.rb', line 28

def fuel_energy
  @fuel_energy
end

#idlingSamsara::Reports::Vehicles::AsyncIdlingClient (readonly)



26
27
28
# File 'lib/samsara_api/reports/vehicles/client.rb', line 26

def idling
  @idling
end