File: CoinType.pm

package info (click to toggle)
libur-perl 0.470%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,192 kB
  • sloc: perl: 61,814; javascript: 255; xml: 108; sh: 13; makefile: 9
file content (19 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package Vending::DataSource::CoinType;
use strict;
use warnings;
use Vending;

my $path = Vending->get_base_directory_name() . '/DataSource/coin_types.tsv';

class Vending::DataSource::CoinType {
    is => ['UR::DataSource::File','UR::Singleton'],
    has_constant => [
        server => { value => $path },
        delimiter => { value => '\s+' },
        column_order => { value => ['name','value_cents'] },
        sort_order => { value => ['name'] },
    ],
};

1;