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.4.2 lib/postmark/json.rb
postmark-1.4.1 lib/postmark/json.rb
postmark-1.4.0 lib/postmark/json.rb
postmark-1.3.1 lib/postmark/json.rb
postmark-1.3.0 lib/postmark/json.rb
postmark-1.2.1 lib/postmark/json.rb
postmark-1.2.0 lib/postmark/json.rb
postmark-1.1.2 lib/postmark/json.rb
postmark-1.1.1 lib/postmark/json.rb
postmark-1.1.0 lib/postmark/json.rb
postmark-1.0.2 lib/postmark/json.rb
postmark-1.0.1 lib/postmark/json.rb
postmark-1.0.0 lib/postmark/json.rb
postmark-0.9.19 lib/postmark/json.rb
postmark-0.9.18 lib/postmark/json.rb
postmark-0.9.17 lib/postmark/json.rb
postmark-0.9.16 lib/postmark/json.rb
postmark-0.9.15 lib/postmark/json.rb
postmark-0.9.14 lib/postmark/json.rb
postmark-0.9.13 lib/postmark/json.rb