Method: Airplay::Device#initialize
- Defined in:
- lib/airplay/device.rb
#initialize(attributes = {}) ⇒ Device
Returns a new instance of Device.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/airplay/device.rb', line 18 def initialize(attributes = {}) validate_attributes(attributes) @name = attributes[:name] @address = attributes[:address] @type = attributes[:type] @password = attributes[:password] @it_has_password = false Airplay.configuration.load end |