{"id":17557529,"url":"https://github.com/blaknite/blush","last_synced_at":"2025-04-24T04:51:16.884Z","repository":{"id":62554400,"uuid":"58914689","full_name":"blaknite/blush","owner":"blaknite","description":"View-Models for Rails.","archived":false,"fork":false,"pushed_at":"2019-10-27T12:36:10.000Z","size":14,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-20T15:50:00.213Z","etag":null,"topics":["decorators","presenters","rails","view-model"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blaknite.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-16T08:05:29.000Z","updated_at":"2020-03-06T01:14:27.000Z","dependencies_parsed_at":"2022-11-03T05:00:34.523Z","dependency_job_id":null,"html_url":"https://github.com/blaknite/blush","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaknite%2Fblush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaknite%2Fblush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaknite%2Fblush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blaknite%2Fblush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blaknite","download_url":"https://codeload.github.com/blaknite/blush/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250566445,"owners_count":21451230,"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":["decorators","presenters","rails","view-model"],"created_at":"2024-10-21T09:08:20.372Z","updated_at":"2025-04-24T04:51:16.861Z","avatar_url":"https://github.com/blaknite.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blush\n\nView-Models for Rails.\n\n## Installation\n\n```ruby\ngem 'blush'\n```\n\n## Usage\n\n```ruby\nclass Comment \u003c ActiveRecord::Base\n  has_presenter\nend\n\nclass CommentPresenter \u003c Blush::Presenter\n  def content\n    h.simple_format(object.content)\n  end\nend\n\n# explicitly call the presenter methods\n@comment.presenter.content\n\n# delegate to the model if method doesn't exist on presenter\n@comment.present(:content)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaknite%2Fblush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblaknite%2Fblush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblaknite%2Fblush/lists"}