Class: Hashie::Trash

Inherits:
Dash show all
Includes:
Extensions::Dash::PropertyTranslation
Defined in:
lib/hashie/trash.rb

Overview

A Trash is a 'translated' Dash where the keys can be remapped from a source hash.

Trashes are useful when you need to read data from another application, such as a Java api, where the keys are named differently from how we would in Ruby.

Method Summary

Methods included from Extensions::Dash::PropertyTranslation

included

Methods inherited from Dash

#[], #[]=, inherited, #initialize, #merge, #merge!, property, property?, #replace, required?, #to_h, #update_attributes!

Methods included from Extensions::PrettyInspect

#hashie_inspect, included

Methods inherited from Hash

#to_hash, #to_json, #to_mash

Methods included from Extensions::StringifyKeys

#stringify_keys, #stringify_keys!

Methods included from Extensions::StringifyKeys::ClassMethods

#stringify_keys, #stringify_keys!, #stringify_keys_recursively!

Constructor Details

This class inherits a constructor from Hashie::Dash