class WithEvents::Aws::Message
Attributes
event[R]
id[R]
identifier[R]
options[R]
stream[R]
Public Class Methods
from_sqs(options = {})
click to toggle source
# File lib/with_events/aws/message.rb, line 24 def self.from_sqs(options = {}) new(options.deep_transform_keys { |key| key.to_s.underscore }) end
new(options = {})
click to toggle source
# File lib/with_events/aws/message.rb, line 13 def initialize(options = {}) @options = options.with_indifferent_access @event = @options[:event] @stream = @options[:stream] @identifier = @options[:identifier] end
Public Instance Methods
serialize()
click to toggle source
# File lib/with_events/aws/message.rb, line 20 def serialize options.deep_transform_keys { |key| key.to_s.camelize(:lower) } end