mios 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,14 @@ module MiOS
4
4
  def self.extended(base)
5
5
  base.instance_variable_set("@camera1_urn", "urn:micasaverde-com:serviceId:Camera1")
6
6
  end
7
+
8
+ def url
9
+ value_for(@camera1_urn, 'URL')
10
+ end
11
+
12
+ def full_url
13
+ "http://#{self.ip}/#{url}"
14
+ end
7
15
  end
8
16
  end
9
17
  end
@@ -5,6 +5,14 @@ module MiOS
5
5
  base.instance_variable_set("@doorlock1_urn", "urn:micasaverde-com:serviceId:DoorLock1")
6
6
  end
7
7
 
8
+ def min_pin_size
9
+ integer_for(@doorlock1_urn, 'MinPinSize')
10
+ end
11
+
12
+ def max_pin_size
13
+ integer_for(@doorlock1_urn, 'MaxPinSize')
14
+ end
15
+
8
16
  def locked?
9
17
  boolean_for(@doorlock1_urn, 'Status')
10
18
  end
@@ -5,13 +5,25 @@ module MiOS
5
5
  base.instance_variable_set("@hadevice1_urn", "urn:micasaverde-com:serviceId:HaDevice1")
6
6
  end
7
7
 
8
- def battery_level
9
- integer_for(@hadevice1_urn, "BatteryLevel")
8
+ def auto_configure
9
+ boolean_for(@hadevice1_urn, "AutoConfigure")
10
10
  end
11
11
 
12
12
  def battery_date
13
13
  timestamp_for(@hadevice1_urn, "BatteryDate")
14
14
  end
15
+
16
+ def battery_level
17
+ integer_for(@hadevice1_urn, "BatteryLevel")
18
+ end
19
+
20
+ def first_configured
21
+ timestamp_for(@hadevice1_urn, "FirstConfigured")
22
+ end
23
+
24
+ def last_update
25
+ timestamp_for(@hadevice1_urn, "LastUpdate")
26
+ end
15
27
  end
16
28
  end
17
29
  end
data/lib/mios/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module MiOS
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-07 00:00:00.000000000 Z
12
+ date: 2012-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  segments:
143
143
  - 0
144
- hash: -1148143416777399406
144
+ hash: 770704339145567336
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  none: false
147
147
  requirements:
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  segments:
152
152
  - 0
153
- hash: -1148143416777399406
153
+ hash: 770704339145567336
154
154
  requirements: []
155
155
  rubyforge_project:
156
156
  rubygems_version: 1.8.23