Module: Pheme::MessageType::AwsEvent

Extended by:
ActiveSupport::Concern
Defined in:
lib/pheme/message_type/aws_event.rb

Instance Method Summary collapse

Instance Method Details

#formatObject



17
18
19
# File 'lib/pheme/message_type/aws_event.rb', line 17

def format
  :aws_event
end

#get_content(body) ⇒ Object



13
14
15
# File 'lib/pheme/message_type/aws_event.rb', line 13

def get_content(body)
  body['Records']
end

#parse_aws_event(message_contents) ⇒ Object



21
22
23
# File 'lib/pheme/message_type/aws_event.rb', line 21

def parse_aws_event(message_contents)
  ResourceStruct::FlexStruct.new({ wrapper: message_contents }).wrapper
end