rsstootalizer/RSSTootalizer/Account.pm

23 lines
479 B
Perl
Raw Normal View History

2017-04-21 14:56:24 +00:00
# vim: set foldmarker={,}:
use strict;
2017-04-23 18:51:48 +00:00
use RSSTootalizer::Base;
2017-04-21 14:56:24 +00:00
2017-04-23 18:51:48 +00:00
package RSSTootalizer::Account;
@RSSTootalizer::Account::ISA = qw(RSSTootalizer::Base);
2017-04-21 14:56:24 +00:00
use JSON;
2017-04-23 18:51:48 +00:00
use RSSTootalizer::Application;
2017-04-21 14:56:24 +00:00
use Data::Dumper;
sub dbTable :lvalue { "accounts"; }
sub orderBy :lvalue { "username ASC"; }
# Class functions
# Object methods
sub application {
my $self = shift;
2017-04-23 18:51:48 +00:00
my $retVal = RSSTootalizer::Application->get_by("id", $self->{"data"}->{"application_id"});
2017-04-21 14:56:24 +00:00
return $retVal;
}
1;