diff options
| author | mo <mo@mokhan.ca> | 2018-05-07 14:47:06 -0600 |
|---|---|---|
| committer | mo <mo@mokhan.ca> | 2018-05-07 14:47:06 -0600 |
| commit | 9014e187ce3591a3faf1075efac830893f023e0d (patch) | |
| tree | d3f464082a49067095af824ae512caa837efa294 /lib/net/hippie/json_mapper.rb | |
| parent | f66d272a243508ba665996a0c6cc78fcf23cb046 (diff) | |
extract json mapper.
Diffstat (limited to 'lib/net/hippie/json_mapper.rb')
| -rw-r--r-- | lib/net/hippie/json_mapper.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/net/hippie/json_mapper.rb b/lib/net/hippie/json_mapper.rb new file mode 100644 index 0000000..3aae9e3 --- /dev/null +++ b/lib/net/hippie/json_mapper.rb @@ -0,0 +1,9 @@ +module Net + module Hippie + class JsonMapper + def map_from(hash) + JSON.generate(hash) + end + end + end +end |
