Class: Moromi::Aws::Sns::Message::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/moromi/aws/sns/message/base.rb

Direct Known Subclasses

Apns, Fcm

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build_from_hash(hash) ⇒ Object



21
22
23
# File 'lib/moromi/aws/sns/message/base.rb', line 21

def build_from_hash(hash)
  new(hash)
end

Instance Method Details

#==(other) ⇒ Object



16
17
18
# File 'lib/moromi/aws/sns/message/base.rb', line 16

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

#to_hashObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/moromi/aws/sns/message/base.rb', line 8

def to_hash
  raise NotImplementedError
end

#to_message_jsonObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/moromi/aws/sns/message/base.rb', line 12

def to_message_json
  raise NotImplementedError
end