summaryrefslogtreecommitdiff
path: root/lib/Ultramarine/Model
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2018-01-02 17:18:39 +0000
committerdakkar <dakkar@thenautilus.net>2018-01-02 17:18:39 +0000
commitcfe34795b1d9db7ada11d18c4f76444060cdf60d (patch)
tree98e5d5c5bd6731d0ae656a33374d5d211ae2abe0 /lib/Ultramarine/Model
parenttest for musicfile (diff)
downloadUltramarine-cfe34795b1d9db7ada11d18c4f76444060cdf60d.tar.gz
Ultramarine-cfe34795b1d9db7ada11d18c4f76444060cdf60d.tar.bz2
Ultramarine-cfe34795b1d9db7ada11d18c4f76444060cdf60d.zip
better structure, and test, for License
Diffstat (limited to 'lib/Ultramarine/Model')
-rw-r--r--lib/Ultramarine/Model/License.pm610
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Ultramarine/Model/License.pm6 b/lib/Ultramarine/Model/License.pm6
index 2ceeaa5..26380e0 100644
--- a/lib/Ultramarine/Model/License.pm6
+++ b/lib/Ultramarine/Model/License.pm6
@@ -1,11 +1,7 @@
use v6.d.PREVIEW;
class Ultramarine::Model::License {
- method status() {
- return {
- :valid<true>,
- :email<foo@bar.com>,
- :licenseExpires<2019-01-01:00:00:00>,
- }
- }
+ method is-valid() { True }
+ method email() { 'foo@bar.com' }
+ method expires-at { now.DateTime.later(:2years).Instant }
}