lib/device_map/properties/property.rb in device_map-0.1.1 vs lib/device_map/properties/property.rb in device_map-0.1.2
- old
+ new
@@ -1,7 +1,7 @@
module DeviceMap
module Properties
- class Property < Struct.new(:name, :type_name, :source_name)
+ Property = Struct.new(:name, :type_name, :source_name) do
TYPE_MAPPING = {
integer: Types::Integer,
boolean: Types::Boolean,
string: Types::String
}