{"id":15472733,"url":"https://github.com/hackvan/objects-belongs-to","last_synced_at":"2025-07-15T07:17:32.727Z","repository":{"id":145341765,"uuid":"140044094","full_name":"hackvan/objects-belongs-to","owner":"hackvan","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-07T01:46:59.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T05:02:18.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hackvan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-07T01:46:47.000Z","updated_at":"2018-07-07T01:47:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"16cf57b5-db94-4e4b-be01-2da6f41ed4a1","html_url":"https://github.com/hackvan/objects-belongs-to","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"0652279db9f2f98d4ab1294fb624537c19ca34e7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hackvan/objects-belongs-to","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fobjects-belongs-to","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fobjects-belongs-to/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fobjects-belongs-to/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fobjects-belongs-to/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackvan","download_url":"https://codeload.github.com/hackvan/objects-belongs-to/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackvan%2Fobjects-belongs-to/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265416907,"owners_count":23761493,"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":"2024-10-02T02:40:42.052Z","updated_at":"2025-07-15T07:17:32.620Z","avatar_url":"https://github.com/hackvan.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ruby Objects Belong To Lab\n\n## Objectives\n\n* Write classes that are related via the \"belongs to\" relationship. \n\n## Instructions\n\nIn this lab, you'll be coding a `Song` and `Artist` class. A song should belong to an artist. You'll also be coding a `Post` and `Author` class. A post should belong to an author. \n\n* Artists should have a name. \n* Songs should have a title and belong to an artist. A song should be able to tell you the name of its artist:\n\n```ruby\nsong.artist.name\n  # =\u003e \"Beyonce\"\n```\n\n* Posts should have a title and belong to an author. A post should be able to tell you the name of its author:\n\n```ruby\npost.author.name\n  # =\u003e \"Hillary\"\n```\n\n\u003cp data-visibility='hidden'\u003eView \u003ca href='https://learn.co/lessons/ruby-objects-belong-to-lab' title='Ruby Objects Belong To Lab'\u003eRuby Objects Belong To Lab\u003c/a\u003e on Learn.co and start learning to code for free.\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackvan%2Fobjects-belongs-to","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackvan%2Fobjects-belongs-to","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackvan%2Fobjects-belongs-to/lists"}