| 1 | package WWW::Jawbone::Up::Score::Move; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use base 'WWW::Jawbone::Up::JSON'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | __PACKAGE__->add_accessors( | |
| 10 | qw(distance active_time longest_active longest_idle)); | ||
| 11 | 1 | __PACKAGE__->add_accessors({ | |
| 12 | steps => 'bg_steps', | ||
| 13 | active_burn => 'calories', | ||
| 14 | resting_burn => 'bmr_calories', | ||
| 15 | }); | ||
| 16 | |||
| 17 | 1 | ▶ | sub total_burn { |
|
Subroutine
total_burn: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 18 | 1 | my $self = shift; | |
| 19 | 1 | return $self->active_burn + $self->resting_burn; | |
| 20 | } | ||
| 21 | |||
| 22 | 1 | 1; | |