{"id":27197671,"url":"https://github.com/preaction/beam-service","last_synced_at":"2025-04-09T20:29:20.575Z","repository":{"id":56835293,"uuid":"90337249","full_name":"preaction/Beam-Service","owner":"preaction","description":"A service role for objects to access Beam::Wire features","archived":false,"fork":false,"pushed_at":"2017-05-05T05:00:53.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T03:22:41.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/preaction.png","metadata":{"files":{"readme":"README.mkdn","changelog":"CHANGES","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-05T04:35:19.000Z","updated_at":"2017-05-05T04:54:10.000Z","dependencies_parsed_at":"2022-09-09T18:00:46.172Z","dependency_job_id":null,"html_url":"https://github.com/preaction/Beam-Service","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FBeam-Service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FBeam-Service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FBeam-Service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preaction%2FBeam-Service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/preaction","download_url":"https://codeload.github.com/preaction/Beam-Service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248106792,"owners_count":21048796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-09T20:29:19.804Z","updated_at":"2025-04-09T20:29:20.565Z","avatar_url":"https://github.com/preaction.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nBeam::Service - Role for services to access Beam::Wire features\n\n# VERSION\n\nversion 0.001\n\n# STATUS\n\n\u003ca href=\"https://travis-ci.org/preaction/Beam-Service\"\u003e\u003cimg src=\"https://travis-ci.org/preaction/Beam-Service.svg?branch=master\"\u003e\u003c/a\u003e\u003ca href=\"https://coveralls.io/r/preaction/Beam-Service\"\u003e\u003cimg src=\"https://coveralls.io/repos/preaction/Beam-Service/badge.png\" alt=\"Coverage Status\" /\u003e\u003c/a\u003e\n\n# SYNOPSIS\n\n    package My::Object;\n    use Role::Tiny::With; # or Moo, or Moose\n    with 'Beam::Service';\n\n    package main;\n    use Beam::Wire;\n    my $wire = Beam::Wire-\u003enew(\n        config =\u003e {\n            my_object =\u003e {\n                '$class' =\u003e 'My::Object',\n            },\n        },\n    );\n\n    print $wire-\u003eget( 'my_object' )-\u003ename; # my_object\n\n# DESCRIPTION\n\nThis role adds extra functionality to an object that is going to be used\nas a service in a [Beam::Wire](https://metacpan.org/pod/Beam::Wire) container. While any object can be\nconfigured with Beam::Wire, consuming the Beam::Service role allows an\nobject to know its own name and to access the container it was\nconfigured in to fetch other objects that it needs.\n\n# ATTRIBUTES\n\n## name\n\nThe name of the service. This is the name used in the [Beam::Wire](https://metacpan.org/pod/Beam::Wire)\nconfiguration file for this service.\n\n## container\n\nThe [Beam::Wire](https://metacpan.org/pod/Beam::Wire) container object that contained this service. Using\nthis container we can get other services as-needed.\n\n# SEE ALSO\n\n[Beam::Wire](https://metacpan.org/pod/Beam::Wire)\n\n# AUTHOR\n\nDoug Bell \u003cpreaction@cpan.org\u003e\n\n# COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2017 by Doug Bell.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreaction%2Fbeam-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreaction%2Fbeam-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreaction%2Fbeam-service/lists"}