burguillos.info/lib/BurguillosInfo/Ads/ChaletEnVentaCalleHinojo.pm

56 lines
854 B
Perl
Raw Normal View History

2024-05-10 11:07:08 +02:00
package BurguillosInfo::Ads::ChaletEnVentaCalleHinojo;
use v5.36.0;
use strict;
use warnings;
use utf8;
2024-05-10 11:09:43 +02:00
use DateTime;
2024-05-10 11:07:08 +02:00
use feature 'signatures';
use Moo;
use parent 'BurguillosInfo::Ad';
sub id ($self) {
return 'chalet-en-venta-calle-hinojo';
}
sub weight {
return 50;
}
sub max_alternative {
return 1;
}
sub seconds($self) {
return 15;
}
sub default_alternative($self) {
return int($self->alternative * ($self->max_alternative + 1));
}
sub is_active ($self) {
if (DateTime->new(year => 2024, month => 8, day => 11) < DateTime->now()) {
2024-05-10 11:09:43 +02:00
return 0;
}
2024-05-10 11:07:08 +02:00
return 1;
}
sub img ($self) {
return '/img/chalet-calle-hinojo.webp';
}
sub text($self) {
return '(VENDIDA) Chalet pareado en venta en calle Hinojo por 160 000€';
2024-05-10 11:07:08 +02:00
}
sub href {
return 'https://www.idealista.com/inmueble/104802645/';
}
1;