Class: Spaceship::Tunes::DeviceType

Inherits:
Object
  • Object
show all
Defined in:
spaceship/lib/spaceship/tunes/device_type.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.typesObject

Returns the value of attribute types


6
7
8
# File 'spaceship/lib/spaceship/tunes/device_type.rb', line 6

def types
  @types
end

Class Method Details

.exists?(type) ⇒ Boolean

Returns:

  • (Boolean)

8
9
10
# File 'spaceship/lib/spaceship/tunes/device_type.rb', line 8

def exists?(type)
  types.include?(type)
end