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.25.1 lib/postmark/json.rb
postmark-1.25.0 lib/postmark/json.rb
postmark-1.24.1 lib/postmark/json.rb
postmark-1.24.0 lib/postmark/json.rb
postmark-1.23.0 lib/postmark/json.rb
postmark-1.22.3 lib/postmark/json.rb
postmark-1.22.2 lib/postmark/json.rb
postmark-1.22.1 lib/postmark/json.rb
postmark-1.22.0 lib/postmark/json.rb
postmark-1.21.8 lib/postmark/json.rb
postmark-1.21.7 lib/postmark/json.rb
postmark-1.21.6 lib/postmark/json.rb
postmark-1.21.5 lib/postmark/json.rb
postmark-1.21.4 lib/postmark/json.rb
postmark-1.21.3 lib/postmark/json.rb
postmark-1.21.2 lib/postmark/json.rb
postmark-1.21.1 lib/postmark/json.rb
postmark-1.21.0 lib/postmark/json.rb
postmark-1.20.0 lib/postmark/json.rb
postmark-1.19.2 lib/postmark/json.rb