Module: Nosy::Parser::MessageSupport
- Included in:
- Nosy::Parser
- Defined in:
- lib/nosy/parser/message_support.rb
Instance Method Summary collapse
- #find_all_messages(file) ⇒ Object
- #parse_imessage(parsed_message, message) ⇒ Object
- #parse_sms_message(parsed_message, message) ⇒ Object
Instance Method Details
#find_all_messages(file) ⇒ Object
7 8 9 |
# File 'lib/nosy/parser/message_support.rb', line 7 def ( file ) SQLite3::Database.new( file ).execute( "select rowid, date, address, text, flags, is_madrid, madrid_flags, madrid_handle from message" ) end |
#parse_imessage(parsed_message, message) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/nosy/parser/message_support.rb', line 11 def ( , ) . = true .date = ([1]) if [6] == 36869 ( , ) elsif [6] == 12289 ( , ) elsif [6] == 32773 ( , ) end end |
#parse_sms_message(parsed_message, message) ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/nosy/parser/message_support.rb', line 24 def ( , ) . = false .date = [1] if [4] == 3 || [4] == 35 || [4] == 33 || [4] == 16387 ( , ) elsif [4] == 2 ( , ) end end |