class Mobi::Mtld::Da::Properties

Copyright
Author

Contains a hash of names to Property objects. An instance of this class is returned by DeviceApi.properties.

Public Instance Methods

[](property_name) click to toggle source

Overload of [](key) to consider property names as strings or symbols.

property_name

String or Symbol with the property_name.

return

Property value or nil if the property does not exist.

Calls superclass method
contains?(property_name, value_to_check = nil) click to toggle source

Checks whether the properties set has the given pair of property and value.

property_name

String or Symbol with the property name.

value_to_check

Value to check.

return

Boolean value.

delete(property_name) click to toggle source

Overload delete() to allow property names as symbols.

property_name

String or Symbol with the property_name.

return

Property object or nil if the property does not exist.

Calls superclass method
get(property_name) click to toggle source

Gets the value of the given property identified by its name.

property_name

String or Symbol with the property_name.

return

Property value or nil if the property does not exist.

has_key?(property_name) click to toggle source

Overload has_key? to allow property names as symbols.

property_name

String or Symbol with the property_name.

return

Whether the property name exists in they key set.

Calls superclass method