class Android::Publisher::Response

Public Class Methods

new(body) click to toggle source
# File lib/android/publisher/response.rb, line 15
def initialize(body)

end
parse(response) click to toggle source

TODO: create proper object instead of parsing response

# File lib/android/publisher/response.rb, line 6
def parse(response)
  if response.status == 204
    { :status => "OK" }
  else
    JSON.parse response.body
  end
end