class MicroMicro::Collections::PropertiesCollection
Public Instance Methods
names()
click to toggle source
@return [Array<String>]
# File lib/micro_micro/collections/properties_collection.rb, line 5 def names @names ||= map(&:name).uniq.sort end
to_h()
click to toggle source
@return [Hash{Symbol => Array<String, Hash>}]
# File lib/micro_micro/collections/properties_collection.rb, line 10 def to_h group_by(&:name).symbolize_keys.deep_transform_values(&:value) end
values()
click to toggle source
@return [Array<String, Hash>]
# File lib/micro_micro/collections/properties_collection.rb, line 15 def values @values ||= map(&:value).uniq end