RubyGems Navigation menu

json_to_openstruct 0.1.0

A simple Ruby gem adding OpenStruct::parse_json and OpenStruct::parse_hash methods and reverse OpenStruct#to_hash and OpenStruct#to_json methods to (obviously) OpenStruct. It is able to parse and reconstruct nested json and hash objects as well. There is also a OpenStruct#join method adding possibility to replace values in the hash tree with the values passed as a hash in parameter (supporting accepts_nested_attributes_for format) and return it as a new hash.

Gemfile:
= Copy to clipboard Copied!

install:
=

Versions:

  1. 0.1.0 - December 05, 2017 (5 KB)

Runtime Dependencies (1):

json ~> 2.0

Owners:

Authors:

  • Jiri Prochazka

SHA 256 checksum:

5eba1f6963c9db47131054ec1cab47c2e4a9b19407f0adbbf77423e6ed578401

Total downloads 2,198

For this version 2,198

License:

MIT

Required Ruby Version: >= 0

Links: