Sha256: cfae8c0a2e9b0165a78f0c185a25bfaa52dd0626bbca5bf6c3e6841599c83e21

Contents?: true

Size: 488 Bytes

Versions: 9

Compression:

Stored size: 488 Bytes

Contents

require 'json'

module Moromi
  module Aws
    module Sns
      module Message
        class Base
          def to_hash
            raise NotImplementedError
          end

          def to_message_json
            raise NotImplementedError
          end

          def ==(other)
            to_hash == other.to_hash
          end

          class << self
            def build_from_hash(hash)
              new(hash)
            end
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
moromi-aws-sns-0.15.0 lib/moromi/aws/sns/message/base.rb
moromi-aws-sns-0.14.0 lib/moromi/aws/sns/message/base.rb
moromi-aws-sns-0.13.0 lib/moromi/aws/sns/message/base.rb
moromi-aws-sns-0.12.0 lib/moromi/aws/sns/message/base.rb
moromi-aws-sns-0.11.0 lib/moromi/aws/sns/message/base.rb
moromi-aws-sns-0.10.0 lib/moromi/aws/sns/message/base.rb
moromi-aws-sns-0.9.0 lib/moromi/aws/sns/message/base.rb
moromi-aws-sns-0.8.0 lib/moromi/aws/sns/message/base.rb
moromi-aws-sns-0.7.0 lib/moromi/aws/sns/message/base.rb