{"id":18065207,"url":"https://github.com/elifoster/oocsv-rb","last_synced_at":"2025-06-22T07:02:23.801Z","repository":{"id":56886753,"uuid":"60498868","full_name":"elifoster/oocsv-rb","owner":"elifoster","description":"A very dynamic object-oriented approach to CSV reading and writing.","archived":false,"fork":false,"pushed_at":"2021-01-18T19:16:19.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T11:09:47.477Z","etag":null,"topics":["csv-reading","dynamic","ruby-gem"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/oocsv","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/elifoster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-06T04:38:11.000Z","updated_at":"2021-01-18T19:16:21.000Z","dependencies_parsed_at":"2022-08-20T14:31:25.744Z","dependency_job_id":null,"html_url":"https://github.com/elifoster/oocsv-rb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/elifoster/oocsv-rb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elifoster%2Foocsv-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elifoster%2Foocsv-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elifoster%2Foocsv-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elifoster%2Foocsv-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elifoster","download_url":"https://codeload.github.com/elifoster/oocsv-rb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elifoster%2Foocsv-rb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261250176,"owners_count":23130533,"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":["csv-reading","dynamic","ruby-gem"],"created_at":"2024-10-31T06:09:32.565Z","updated_at":"2025-06-22T07:02:18.739Z","avatar_url":"https://github.com/elifoster.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oocsv\n[![Gem Version](https://badge.fury.io/rb/oocsv.svg)](https://badge.fury.io/rb/oocsv)\n\nA very dynamic object-oriented approach to CSV reading and writing.\n\n## Installation\n### RubyGems\n```shell\n$ gem install oocsv\n```\n\n### Bundler\nAdd this line to the application's Gemfile:\n\n```ruby\ngem('oocsv')\n```\n\nAnd then execute:\n\n```shell\n$ bundle\n```\n\n## Usage\n```ruby\nrequire 'oocsv'\n\nstr = \u003c\u003cEOF\nYear,Make,Model,Length\n1997,Ford,E350,2.34\n2000,Mercury,Cougar,2.38\nEOF\n# =\u003e \"Year,Make,Model,Length\\n1997,Ford,E350,2.34\\n2000,Mercury,Cougar,2.38\\n\"\n\nary = OOCSV.read(str)\n# =\u003e [#\u003cstruct Struct::CSVEntry\u003e, #\u003cstruct Struct::CSVEntry\u003e]\n\nprint OOCSV.write(ary)\n# Year,Make,Model,Length\n# 1997,Ford,E350,2.34\n# 2000,Mercury,Cougar,2.38\n\nary[0].to_s\n# =\u003e \"#\u003cstruct Struct::CSVEntry @Year=1997 @Make=Ford @Model=E350 @Length=2.34\u003e\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felifoster%2Foocsv-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felifoster%2Foocsv-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felifoster%2Foocsv-rb/lists"}