Sha256: 60d91b64b581e3563cc40296a50ad1678b6829dfe7d1d0828537e4877a5c664c

Contents?: true

Size: 323 Bytes

Versions: 78

Compression:

Stored size: 323 Bytes

Contents

module Postmark
  module Json

    class << self
      def encode(data)
        json_parser
        data.to_json
      end

      def decode(data)
        json_parser.decode(data)
      end

      private

      def json_parser
        ResponseParsers.const_get(Postmark.response_parser_class)
      end

    end
  end
end

Version data entries

78 entries across 78 versions & 2 rubygems

Version Path
postmark-1.19.1 lib/postmark/json.rb
postmark-1.19.0 lib/postmark/json.rb
postmark-1.18.0 lib/postmark/json.rb
postmark-1.17.0 lib/postmark/json.rb
postmark-1.16.0 lib/postmark/json.rb
postmark-1.15.0 lib/postmark/json.rb
postmark-1.14.0 lib/postmark/json.rb
postmark-1.13.0 lib/postmark/json.rb
postmark-1.12.0 lib/postmark/json.rb
postmark-1.11.0 lib/postmark/json.rb
postmark-1.10.0 lib/postmark/json.rb
postmark-1.9.1 lib/postmark/json.rb
postmark-1.9.0 lib/postmark/json.rb
postmark-1.8.1 lib/postmark/json.rb
postmark-1.8.0 lib/postmark/json.rb
postmark-1.7.1 lib/postmark/json.rb
postmark-1.7.0 lib/postmark/json.rb
postmark-1.6.0 lib/postmark/json.rb
postmark-1.5.0 lib/postmark/json.rb
postmark-1.4.3 lib/postmark/json.rb