surprise! Object::Remote!
[scpubgit/DKit.git] / lib / DX / FactRef.pm
CommitLineData
4ce2e778 1package DX::FactRef;
2
3use Moo;
4
5with 'DX::Role::Ref';
6
7has fact_type => (is => 'ro', required => 1);
8has fact_id => (is => 'ro', required => 1);
9
10sub resolve {
11 my ($self, $state) = @_;
12 $state->facts->{$self->fact_type}->get($self->fact_id);
13}
14
151;