Module: HangoutsJsonParser

Defined in:
lib/hangouts_json_parser.rb,
lib/hangouts_json_parser/user.rb,
lib/hangouts_json_parser/message.rb,
lib/hangouts_json_parser/version.rb,
lib/hangouts_json_parser/attachment.rb,
lib/hangouts_json_parser/conversation.rb,
lib/hangouts_json_parser/attachment/photo.rb,
lib/hangouts_json_parser/attachment/location.rb

Overview

Parse JSON formatted Hangouts data into more useful data structures

Defined Under Namespace

Modules: Attachment Classes: Conversation, Message, User

Constant Summary collapse

VERSION =

gem version

"0.2.0"

Class Method Summary collapse

Class Method Details

.parse_conversation_state(state) ⇒ Array<Conversation>

Parses conversation state into an array of Conversations

Parameters:

  • state (Array<Hash>)

    converstation_state from the Takeout data

Returns:



17
18
19
20
21
# File 'lib/hangouts_json_parser.rb', line 17

def self.parse_conversation_state state
	state.map do |s|
		Conversation.from_state s['conversation_state']
	end
end