lib/ellen/message.rb in ellen-0.2.6 vs lib/ellen/message.rb in ellen-0.2.7

- old
+ new

@@ -15,9 +15,15 @@ def from @original[:from] end + # @note Some chat service such as XMPP has 2 types of address, address and username + # @return [String] User identifier in the Chat service + def from_name + @original[:from_name] || from + end + def robot @original[:robot] end def to