package DX::FactRef;

use Moo;

with 'DX::Role::Ref';

has fact_type => (is => 'ro', required => 1);
has fact_id => (is => 'ro', required => 1);

sub resolve {
  my ($self, $state) = @_;
  $state->facts->{$self->fact_type}->get($self->fact_id);
}

1;
