| 1 | package Net::StackExchange2::V2::Questions; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.006; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Sub::Name qw(subname); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use Net::StackExchange2::V2::Common qw(query no_params one_param); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | our $VERSION = "0.05"; | |
| 10 | |||
| 11 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 12 | 0 | my ($class, $params) = @_; | |
| 13 | 0 | my $self = $params; | |
| 14 | 0 | bless $self, $class; | |
| 15 | |||
| 16 | 0 | *questions_all = subname( | |
| 17 | "Net::StackExchange2::V2::Questions::questions_all", | ||
| 18 | no_params("questions"), | ||
| 19 | ); | ||
| 20 | 0 | *questions = subname( | |
| 21 | "Net::StackExchange2::V2::Questions::questions", | ||
| 22 | one_param("questions"), | ||
| 23 | ); | ||
| 24 | 0 | *questions_answers = subname( | |
| 25 | "Net::StackExchange2::V2::Questions::questions_answers", | ||
| 26 | one_param("questions", "answers"), | ||
| 27 | ); | ||
| 28 | 0 | *questions_comments = subname( | |
| 29 | "Net::StackExchange2::V2::Questions::questions_comments", | ||
| 30 | one_param("questions", "comments"), | ||
| 31 | ); | ||
| 32 | 0 | *questions_linked = subname( | |
| 33 | "Net::StackExchange2::V2::Questions::questions_linked", | ||
| 34 | one_param("questions", "linked"), | ||
| 35 | ); | ||
| 36 | 0 | *questions_related = subname( | |
| 37 | "Net::StackExchange2::V2::Questions::questions_related", | ||
| 38 | one_param("questions", "related"), | ||
| 39 | ); | ||
| 40 | 0 | *questions_timeline = subname( | |
| 41 | "Net::StackExchange2::V2::Questions::questions_timeline", | ||
| 42 | one_param("questions", "timeline"), | ||
| 43 | ); | ||
| 44 | 0 | *questions_featured = subname( | |
| 45 | "Net::StackExchange2::V2::Questions::questions_featured", | ||
| 46 | no_params("questions/featured"), | ||
| 47 | ); | ||
| 48 | 0 | *questions_unanswered = subname( | |
| 49 | "Net::StackExchange2::V2::Questions::questions_unanswered", | ||
| 50 | no_params("questions/unanswered"), | ||
| 51 | ); | ||
| 52 | 0 | *questions_no_answers = subname( | |
| 53 | "Net::StackExchange2::V2::Questions::questions_no_answers", | ||
| 54 | no_params("questions/no-answers"), | ||
| 55 | ); | ||
| 56 | 0 | return $self; | |
| 57 | } | ||
| 58 | 1 | 1; #END of Net::StackExchange2::V2::Questions | |
| 59 | __END__ | ||