Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Fix JSON print in Ruby #1274

Merged
merged 2 commits into from
May 18, 2017
Merged

Fix JSON print in Ruby #1274

merged 2 commits into from
May 18, 2017

Commits on May 17, 2017

  1. Fix JSON print in Ruby

    It turns out that `to_h` is not a method available on every object
    returned by the samples at the moment. Also, there's some kind of
    decoding bug showing up in certain samples where the JSON module is
    unable to unparse the response.
    
    It's troublesome to have so much boilerplate just to pretty print. This
    commit removes the pretty calls in favor of the vanilla `to_json` method
    implemented by the base model class in the Ruby client. In the future,
    once the bugs w.r.t `pretty_generate` have been resolved, we can revert.
    saicheems committed May 17, 2017
    Configuration menu
    Copy the full SHA
    3075256 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c93cc9 View commit details
    Browse the repository at this point in the history