Class: GRuby::Util
- Inherits:
-
Object
- Object
- GRuby::Util
- Defined in:
- lib/g_ruby/util.rb
Class Method Summary collapse
-
.get_json(nestful_response) ⇒ Object
GRuby::Util.get_json(nestful_response).
Class Method Details
.get_json(nestful_response) ⇒ Object
GRuby::Util.get_json(nestful_response)
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/g_ruby/util.rb', line 4 def self.get_json(nestful_response) begin if !nestful_response.blank? if !nestful_response.body.blank? return JSON.parse(nestful_response.body) end end return nil rescue return nil end end |