Class: SportDb::Model::GroupQuote
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SportDb::Model::GroupQuote
- Defined in:
- lib/sportdb/market/models/group_quote.rb
Class Method Summary collapse
Class Method Details
.create_from_ary!(teams_with_odds, service, group) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/sportdb/market/models/group_quote.rb', line 15 def self.create_from_ary!( teams_with_odds, service, group ) teams_with_odds.each do |values| GroupQuote.create!( :service => service, :group => group, :team => values[0], :odds => values[1] ) end # each team end |