Class: Spaceship::Tunes::DeviceType

Inherits:
Object
  • Object
show all
Defined in:
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 'lib/spaceship/tunes/device_type.rb', line 6

def types
  @types
end

Class Method Details

.exists?(type) ⇒ Boolean

Returns:

  • (Boolean)


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

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