Sha256: acef952ac7dc9e776b46e2967c8af52d1938507b0d4453130763c1860d945dc4

Contents?: true

Size: 638 Bytes

Versions: 21

Compression:

Stored size: 638 Bytes

Contents

module Gemini
  class FannieBup < Marty::Base
    extend Gemini::Extras::DataImport
    extend Gemini::Extras::SettlementImport

    self.table_name = 'gemini_fannie_bups'

    has_mcfly
    mcfly_validates_uniqueness_of :note_rate,
    scope: [:entity_id,
            :bud_category_id,
            :settlement_mm,
            :settlement_yy,
           ]

    belongs_to :entity
    mcfly_belongs_to :bud_category

    def self.import_preprocess(data)
      data.map {
        |rec|
        rec["note_rate"].gsub! /\$/, ''
        rec["buy_up"].gsub! /\%/, ''
        rec["buy_down"].gsub! /\%/, ''
        rec
      }
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
marty-2.0.1 spec/dummy/app/models/gemini/fannie_bup.rb
marty-2.0.0 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.9 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.8 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.7 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.6 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.5 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.4 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.3 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.2 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.1 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.2.0 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.1.9 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.1.8 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.1.7 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.1.6 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.1.5 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.1.4 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.1.3 spec/dummy/app/models/gemini/fannie_bup.rb
marty-1.1.2 spec/dummy/app/models/gemini/fannie_bup.rb