Module: Device::Classes

Included in:
Device
Defined in:
lib/fingerbank_client/device_classes.rb

Instance Method Summary collapse

Instance Method Details

#android?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/fingerbank_client/device_classes.rb', line 4

def android?
  self.is?("Generic Android")
end

#blackberry?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/fingerbank_client/device_classes.rb', line 24

def blackberry?
  self.is?("RIM BlackBerry")
end

#ios?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


16
17
18
# File 'lib/fingerbank_client/device_classes.rb', line 16

def mac?
  self.is?("Macintosh")
end

#windows?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/fingerbank_client/device_classes.rb', line 12

def windows?
  self.is?("Windows")
end

#windows_phone?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/fingerbank_client/device_classes.rb', line 20

def windows_phone?
  self.is?("Windows Phone")
end