GRid
Class for managing Global Release Identifiers (GRid numbers).
GRid numbers are used to identify electronic music releases.
Installation
Add this line to your application's Gemfile:
gem "grid-number"
And then execute:
$ bundle
Or install it yourself as:
$ gem install grid-number
Usage
require "grid"
grid = GRid.parse("A12425GABC1234011K")
grid = GRid.parse("A1-2425G-ABC1234011-K")
grid = GRid.parse(" grid:A1-2425G-ABC1234011-K ")
grid.valid?
grid.id_scheme
grid.issuer_code
grid.release_number
grid.check_character
grid = GRid.new(:issuer_code => "2425G", :release_number => "ABC1234002")
grid.check_character
grid.release_number = "X999150000"
grid.check_character
grid = GRid.parse("A12425GABC1234011X")
grid.valid?
grid.errors[:check_character]
GRid.default_issuer_code = "2425G"
grid = GRid.new(:release_number => "ABC1234002")
grid.to_s
grid.formatted
Links
See Also
- DDEX - DDEX metadata serialization
- istwox - Classes for ISBN, ISSN, ISRC, ISMN and ISAN numbers
- iTunes Store Transporter: GUI - GUI and workflow automation for the iTunes Store’s Transporter (
iTMSTransporter
)
License
The gem is available as open source under the terms of the MIT License.
Made by ScreenStaring