lib/redd/utilities/unmarshaller.rb in redd-0.8.0.pre.2 vs lib/redd/utilities/unmarshaller.rb in redd-0.8.0

- old
+ new

@@ -3,19 +3,21 @@ module Redd module Utilities # Unmarshals hashes into objects. class Unmarshaller # Contains the mapping from 'kind' strings to classes. + # TODO: UserList type! MAPPING = { - 't1' => Models::Comment, - 't2' => Models::User, - 't3' => Models::Submission, - 't4' => Models::PrivateMessage, - 't5' => Models::Subreddit, - 'more' => Models::MoreComments, - 'wikipage' => Models::WikiPage, - 'Listing' => Models::Listing, - 'LabeledMulti' => Models::Multireddit + 't1' => Models::Comment, + 't2' => Models::User, + 't3' => Models::Submission, + 't4' => Models::PrivateMessage, + 't5' => Models::Subreddit, + 'more' => Models::MoreComments, + 'wikipage' => Models::WikiPage, + 'Listing' => Models::Listing, + 'LabeledMulti' => Models::Multireddit, + 'LiveUpdateEvent' => Models::LiveThread }.freeze def initialize(client) @client = client end