Module: Contrast::Api::Decorators::Message::ClassMethods
- Defined in:
- lib/contrast/api/decorators/message.rb
Overview
Used to add class methods to the ApplicationUpdate class on inclusion of the decorator
Constant Summary collapse
- @@message_total =
rubocop:disable Style/ClassVars
0
Instance Method Summary collapse
Instance Method Details
#build(event) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/contrast/api/decorators/message.rb', line 59 def build event msg = new msg.app_name = APP_CONTEXT.name msg.app_path = APP_CONTEXT.path msg.app_language = Contrast::Utils::ObjectShare::RUBY msg.client_id = APP_CONTEXT.client_id msg. = msg.pid = APP_CONTEXT.pid msg.ppid = APP_CONTEXT.ppid msg.append_event(event) msg end |
#message_count ⇒ Object
55 56 57 |
# File 'lib/contrast/api/decorators/message.rb', line 55 def @@message_total += 1 # rubocop:disable Style/ClassVars end |