Sha256: d4d07405da0c91c15d2908e8e1b4b387c1b91832a88383756cdc48f33cf06244
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 Bytes
Contents
module Gdshowsdb class SongRefDBExtractor def self.from_db raw_db = SongRef.find(:all, order: :name) Gdshowsdb::SongRefDBExtractor.new(raw_db) end def initialize(song_ref_list) @song_ref_list = song_ref_list end def extract @song_ref_list.map do |song_ref| song_ref.attributes.convert_to_sym.reject {|k,v| k == :slug || k == :song_occurences_count } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gdshowsdb-1.0.0 | lib/gdshowsdb/song_ref_db_extractror.rb |
gdshowsdb-0.9.1 | lib/gdshowsdb/song_ref_db_extractror.rb |
gdshowsdb-0.9.0 | lib/gdshowsdb/song_ref_db_extractror.rb |