Class: MaponClient::Resources::UnitDataResource

Inherits:
MaponClient::Resources show all
Defined in:
lib/mapon_client/resources/unit_data_resource.rb

Constant Summary

Constants inherited from MaponClient::Resources

AVAILABLE_RESOURCES

Instance Method Summary collapse

Methods inherited from MaponClient::Resources

#[], #initialize, #with_key

Constructor Details

This class inherits a constructor from MaponClient::Resources

Instance Method Details

#can_period(params = {}) ⇒ Object



22
23
24
25
26
# File 'lib/mapon_client/resources/unit_data_resource.rb', line 22

def can_period(params = {})
  @client['unit_data/can_period'].get(
    params: with_key(params)
  )
end

#can_point(params = {}) ⇒ Object



28
29
30
31
32
# File 'lib/mapon_client/resources/unit_data_resource.rb', line 28

def can_point(params = {})
  @client['unit_data/can_point'].get(
    params: with_key(params)
  )
end

#debug_info(params = {}) ⇒ Object



40
41
42
43
44
# File 'lib/mapon_client/resources/unit_data_resource.rb', line 40

def debug_info(params = {})
  @client['unit_data/debug_info'].get(
    params: with_key(params)
  )
end

#digital_inputs(params = {}) ⇒ Object



16
17
18
19
20
# File 'lib/mapon_client/resources/unit_data_resource.rb', line 16

def digital_inputs(params = {})
  @client['unit_data/digital_inputs'].get(
    params: with_key(params)
  )
end

#fields(params = {}) ⇒ Object



34
35
36
37
38
# File 'lib/mapon_client/resources/unit_data_resource.rb', line 34

def fields(params = {})
  @client['unit_data/fields'].get(
    params: with_key(params)
  )
end

#ignitions(params = {}) ⇒ Object



4
5
6
7
8
# File 'lib/mapon_client/resources/unit_data_resource.rb', line 4

def ignitions(params = {})
  @client['unit_data/ignitions'].get(
    params: with_key(params)
  )
end

#temperature(params = {}) ⇒ Object



10
11
12
13
14
# File 'lib/mapon_client/resources/unit_data_resource.rb', line 10

def temperature(params = {})
  @client['unit_data/temperature'].get(
    params: with_key(params)
  )
end