Class: Chemtrail::PropertyList

Inherits:
Hash
  • Object
show all
Defined in:
lib/chemtrail/property_list.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



2
3
4
5
6
7
# File 'lib/chemtrail/property_list.rb', line 2

def to_hash
  reduce(self) do |property_list, (key, value)|
    property_list[key] = Chemtrail::ReferencePresenter.new(value).to_parameter
    property_list
  end
end