Skip to content

Commit

Permalink
return nick_name directly (need refactoring)
Browse files Browse the repository at this point in the history
  • Loading branch information
clsung committed May 28, 2011
1 parent 78613be commit 38f0c04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Net/Plurk/UserProfile.pm
Expand Up @@ -29,6 +29,12 @@ has 'plurks_users' => (is => 'ro', isa => 'HashRef');
has 'privacy' => (is => 'ro', isa => enum([qw[ world only_friends only_me ]]));
#has 'plurks' => (is => 'ro', isa => 'ArrayRef[Net::Plurk::PlurkContent]');
has 'plurks' => (is => 'ro', isa => 'ArrayRef');
has 'nick_name' => (is => 'ro', isa => 'Str', lazy_build => 1);

sub _build_nick_name {
my $self = shift;
return $self->user_info->nick_name;
}

no Moose::Util::TypeConstraints;
package Net::Plurk::PublicUserProfile;
Expand Down

0 comments on commit 38f0c04

Please sign in to comment.