lib/gvive/response.rb
# Convert response data to plain Ruby Objects
# @return [OpenStruct]
Convert response data to plain Ruby Objects
Convert response data to plain Ruby Objects
def to_o
      old_hash = JSON.parse @http_response.body.to_s
      new_hash = {}
      old_hash.each do |k,v|
        new_hash["#{snakecase(k)}"] = v
      end
      @cache = OpenStruct.new(new_hash)
    end
def to_o old_hash = JSON . parse @http_response . body . to_s new_hash = { } old_hash . each do | k , v | new_hash [ "#{snakecase(k)}" ] = v end @cache = OpenStruct . new ( new_hash ) end
Convert response data to plain Ruby Objects
Convert response data to plain Ruby Objects
None
OpenStruct