Class: Humidifier::IoT1Click::Device

Inherits:
Resource
  • Object
show all
Defined in:
lib/humidifier/magic.rb

Overview

A dynamically-defined class that represents an AWS::IoT1Click::Device resource

AWS Resource:

Constant Summary

Constants inherited from Resource

Resource::COMMON_ATTRIBUTES

Instance Method Summary collapse

Methods inherited from Resource

#initialize, #method_missing, prop?, #respond_to_missing?, #to_cf, #update, #update_attributes, #update_property

Constructor Details

This class inherits a constructor from Humidifier::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Humidifier::Resource

Instance Method Details

#device_idObject

returns the DeviceId property



10
11
12
# File 'lib/humidifier/magic.rb', line 10

def device_id
  properties['device_id']
end

#device_id=(value) ⇒ Object

sets the DeviceId property (String)



15
16
17
# File 'lib/humidifier/magic.rb', line 15

def device_id=(value)
  update_property('device_id', value)
end

#enabledObject

returns the Enabled property



20
21
22
# File 'lib/humidifier/magic.rb', line 20

def enabled
  properties['enabled']
end

#enabled=(value) ⇒ Object

sets the Enabled property (Boolean)



25
26
27
# File 'lib/humidifier/magic.rb', line 25

def enabled=(value)
  update_property('enabled', value)
end