Sha256: b6ec14ab0c468b6e9e0ddda086e519c10be2aa9bcda70d7e69333c6a2af82c4c
Contents?: true
Size: 528 Bytes
Versions: 4
Compression:
Stored size: 528 Bytes
Contents
module Gnip class SystemMessage < Gnip::Message attr_reader :message, :sent, :message_type def initialize params @message_type = params.keys.first @message = params['message'] @sent = params['sent'] end def original_attributes { @message_type => @message, :sent => @sent } end def log_method @message_type.to_sym end def message @message.strip end def to_json generate_json(original_attributes) end end end
Version data entries
4 entries across 4 versions & 1 rubygems