lib/head_music/instrument.rb in head_music-0.25.0 vs lib/head_music/instrument.rb in head_music-0.26.0

- old
+ new

@@ -15,11 +15,11 @@ def self.all INSTRUMENTS.map { |key, _data| get(key) }.sort_by(&:name) end - attr_reader :name_key, :family, :default_clefs, :classifications, :voice + attr_reader :name_key, :family, :standard_staves, :classifications def ==(other) to_s == other.to_s end @@ -65,12 +65,11 @@ end def initialize_data_from_record(record) @name_key = record['name_key'].to_sym @family = record['family'] - @default_clefs = record['default_clefs'] || [] + @standard_staves = record['standard_staves'] || [] @classifications = record['classifications'] || [] - @voice = record['voice'].to_s self.name = I18n.translate(name_key, scope: 'instruments', locale: 'en', default: inferred_name) end def inferred_name name_key.to_s.gsub(/_/, ' ')