Module: MiOS::Services::HaDevice1
- Defined in:
- lib/mios/services/ha_device1.rb
Class Method Summary collapse
Instance Method Summary collapse
- #auto_configure ⇒ Object
- #battery_date ⇒ Object
- #battery_level ⇒ Object
- #first_configured ⇒ Object
- #last_update ⇒ Object
Class Method Details
.extended(base) ⇒ Object
4 5 6 |
# File 'lib/mios/services/ha_device1.rb', line 4 def self.extended(base) base.instance_variable_set("@hadevice1_urn", "urn:micasaverde-com:serviceId:HaDevice1") end |
Instance Method Details
#auto_configure ⇒ Object
8 9 10 |
# File 'lib/mios/services/ha_device1.rb', line 8 def auto_configure boolean_for(@hadevice1_urn, "AutoConfigure") end |
#battery_date ⇒ Object
12 13 14 |
# File 'lib/mios/services/ha_device1.rb', line 12 def battery_date (@hadevice1_urn, "BatteryDate") end |
#battery_level ⇒ Object
16 17 18 |
# File 'lib/mios/services/ha_device1.rb', line 16 def battery_level integer_for(@hadevice1_urn, "BatteryLevel") end |
#first_configured ⇒ Object
20 21 22 |
# File 'lib/mios/services/ha_device1.rb', line 20 def first_configured (@hadevice1_urn, "FirstConfigured") end |
#last_update ⇒ Object
24 25 26 |
# File 'lib/mios/services/ha_device1.rb', line 24 def last_update (@hadevice1_urn, "LastUpdate") end |