class SportDb::Model::EventQuote
Public Class Methods
create_from_ary!( teams_with_odds, service, event )
click to toggle source
# File lib/sportdb/market/models/event_quote.rb, line 15 def self.create_from_ary!( teams_with_odds, service, event ) teams_with_odds.each do |values| EventQuote.create!( :service => service, :event => event, :team => values[0], :odds => values[1] ) end # each team end