Sha256: 5304ef26f08bafd377878c020734c6a5794ce3c80aac7ceba26ed2ca4e6491e9

Contents?: true

Size: 366 Bytes

Versions: 13

Compression:

Stored size: 366 Bytes

Contents

require 'json'

module Animoto
  module ResponseParsers
    class JSONAdapter < Animoto::ResponseParsers::Base
      
      @format = 'json'
      
      # @return [Hash{String=>Object}]
      def parse string
        ::JSON.parse string
      end
      
      # @return [String]
      def unparse object
        ::JSON.unparse object
      end
    end    
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
animoto-1.5.6 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.5.5 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.5.4 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.5.3 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.5.2 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.5.1 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.5.0 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.3.1 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.3.0 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.2.0 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.1.1 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.1.0 ./lib/animoto/response_parsers/json_adapter.rb
animoto-1.0.0 ./lib/animoto/response_parsers/json_adapter.rb