Module: Nosy::Parser::Imessage

Included in:
Nosy::Parser
Defined in:
lib/nosy/parser/imessage.rb

Instance Method Summary collapse

Instance Method Details

#received_imessage(parsed_message, message) ⇒ Object



12
13
14
15
# File 'lib/nosy/parser/imessage.rb', line 12

def received_imessage( parsed_message, message )
  parsed_message.receiver = "me"
  parsed_message.sender = format_address(message[7])
end

#sent_group_imessage(parsed_message, message) ⇒ Object



17
18
19
20
# File 'lib/nosy/parser/imessage.rb', line 17

def  sent_group_imessage( parsed_message, message )
  parsed_message.sender = "me"
  parsed_message.receiver = "group"
end

#sent_imessage(parsed_message, message) ⇒ Object



7
8
9
10
# File 'lib/nosy/parser/imessage.rb', line 7

def sent_imessage( parsed_message, message )
  parsed_message.receiver = format_address(message[7])
  parsed_message.sender = "me"
end