Class: SportDb::Model::EventQuote
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SportDb::Model::EventQuote
- Defined in:
- lib/sportdb/market/models/event_quote.rb
Class Method Summary collapse
Class Method Details
.create_from_ary!(teams_with_odds, service, event) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# 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 |