class Octo::Message::Message
To handle message abstraction
Attributes
message[R]
Public Class Methods
Public Instance Methods
eid()
click to toggle source
To get enterprise id @return [String] Enterprise
Id
# File lib/octocore-mongo/message_parser.rb, line 98 def eid msg = to_json enterprise = msg['enterprise'] raise StandardError, 'Parse Error' if enterprise.nil? eid = if enterprise.has_key?'custom_id' enterprise['custom_id'] elsif enterprise.has_key?'customId' enterprise['customId'] end eid end