Module: Device::Classes
- Included in:
- Device
- Defined in:
- lib/fingerbank_client/device_classes.rb
Instance Method Summary collapse
- #android? ⇒ Boolean
- #blackberry? ⇒ Boolean
- #ios? ⇒ Boolean
- #mac? ⇒ Boolean
- #windows? ⇒ Boolean
- #windows_phone? ⇒ Boolean
Instance Method Details
#android? ⇒ Boolean
4 5 6 |
# File 'lib/fingerbank_client/device_classes.rb', line 4 def android? self.is?("Generic Android") end |
#blackberry? ⇒ Boolean
24 25 26 |
# File 'lib/fingerbank_client/device_classes.rb', line 24 def blackberry? self.is?("RIM BlackBerry") end |
#ios? ⇒ Boolean
8 9 10 |
# File 'lib/fingerbank_client/device_classes.rb', line 8 def ios? self.is?("Apple iPod, iPhone or iPad") end |
#mac? ⇒ Boolean
16 17 18 |
# File 'lib/fingerbank_client/device_classes.rb', line 16 def mac? self.is?("Macintosh") end |
#windows? ⇒ Boolean
12 13 14 |
# File 'lib/fingerbank_client/device_classes.rb', line 12 def windows? self.is?("Windows") end |
#windows_phone? ⇒ Boolean
20 21 22 |
# File 'lib/fingerbank_client/device_classes.rb', line 20 def windows_phone? self.is?("Windows Phone") end |