Permalink
Browse files

add device information

  • Loading branch information...
1 parent d04a32e commit 22c64e397894c5cb4cb9cba41ea00c100d39422a Jia Brown committed Mar 24, 2012
Showing with 37 additions and 5 deletions.
  1. +19 −0 app/models/device_information.rb
  2. +18 −5 config/device_properties.yml
@@ -0,0 +1,19 @@
+DeviceInformation = Object.new
+
+class << DeviceInformation
+ Group = Struct.new(:name, :fields)
+
+ def categories
+ data.keys
+ end
+
+ def groups(category)
+ data[category].map { |k,v| Group.new(k, v) }
+ end
+
+ private
+
+ def data
+ @data ||= YAML.load_file(Rails.root + "config/device_properties.yml")
+ end
+end
@@ -5,17 +5,30 @@ Computer:
Hardware Information:
- Memory
- Hard drive space
- - 32-bit or 64-bit?
+ - Is 32-bit or 64-bit?
- CPU speed
Software Information:
- Computer name
- Operating system
- 32-bit or 64-bit?
- Supports Yale domain login?
- Encryption enabled?
-
+ - Network shares
+
Router:
- Basic Information:
+ Product Information:
- Brand
- - Model Number
- - Ethernet Ports
+ - Model number
+ Hardware Information:
+ - Wired or wireless?
+ - Number of ethernet ports
+ Software Information:
+ - Wireless network encryption type
+
+Printer:
+ Product Information:
+ - Brand
+ - Model number
+ Hardware Information:
+ - Wired or wireless
+ - Network enabled?

0 comments on commit 22c64e3

Please sign in to comment.