lib/nicoquery/object_mapper/video_array.rb in nicoquery-0.1.2 vs lib/nicoquery/object_mapper/video_array.rb in nicoquery-0.1.3

- old
+ new

@@ -33,10 +33,14 @@ def video_id @hash['video']['id'] end + def thread_id + @hash['thread']['id'].to_i + end + def title @hash['video']['title'] end def description @@ -67,10 +71,10 @@ def view_counter @hash['video']['view_counter'].to_i end def comment_num - @hash['video']['comment_num'].to_i + @hash['thread']['num_res'].to_i end def mylist_counter @hash['video']['mylist_counter'].to_i end