Sha256: 5adb4837801cce9ab92ac2c5fd20788fe2f6f05942c2449426ceaca97112894f

Contents?: true

Size: 354 Bytes

Versions: 2

Compression:

Stored size: 354 Bytes

Contents

module GoogleTranslate
  # superclass for parsing the response: contains the common elements
  class ParsedResponse
    #attr_reader :status, :details
    def initialize(string)
      json = JSON.parse(string)
      #@status = json['responseStatus']
      #@details = json['responseDetails']
      @response_data = json['responseData']
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crutch-google_translate-0.0.3 lib/google_translate/parsed_response.rb
crutch-google_translate-0.0.4 lib/google_translate/parsed_response.rb