Sha256: a54ff10de1f9e3bcbe33d02869a35d9d3166571378626653c9f9247bbf04f1d1
Contents?: true
Size: 543 Bytes
Versions: 6
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true module Simplyq module Model class InboundEvent attr_accessor :data def initialize(data) self.data = data end def self.from_hash(hash) return if hash.nil? new(hash) end def ==(other) return false unless other.is_a?(InboundEvent) data == other.data end def to_h data end def [](key) data[key] end def to_json(*args) to_h.to_json(*args) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems