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-0.9.12 lib/postmark/json.rb
postmark-0.9.11 lib/postmark/json.rb
postmark-0.9.10 lib/postmark/json.rb
postmark-0.9.9 lib/postmark/json.rb
postmark-0.9.8 lib/postmark/json.rb
postmark-0.9.6 lib/postmark/json.rb
postmark-0.9.5 lib/postmark/json.rb
postmark-0.9.4 lib/postmark/json.rb
postmark-0.9.3 lib/postmark/json.rb
postmark-0.9.2 lib/postmark/json.rb
postmark-0.9.1 lib/postmark/json.rb
postmark-0.9.0 lib/postmark/json.rb
postmark-0.8.0 lib/postmark/json.rb
challengepost-postmark-0.7.3 lib/postmark/json.rb
challengepost-postmark-0.7.2 lib/postmark/json.rb
challengepost-postmark-0.7.1 lib/postmark/json.rb
postmark-0.7.1 lib/postmark/json.rb
postmark-0.7.0 lib/postmark/json.rb