| 1 | package Mojo::Webqq::Recent::Discuss; | ||
| 2 | use strict; | ||
| 3 | use Mojo::Webqq::Base 'Mojo::Webqq::Model::Base'; | ||
| 4 | has [qw( | ||
| 5 | did | ||
| 6 | type | ||
| 7 | )]; | ||
| 8 | |||
| 9 | sub update{ | ||
| 10 | my $self = shift; | ||
| 11 | my $hash = shift; | ||
| 12 | for(keys %$self){ | ||
| 13 | $self->{$_} = $hash->{$_} if exists $hash->{$_} ; | ||
| 14 | } | ||
| 15 | $self; | ||
| 16 | } | ||
| 17 | 1; |