Class: PrizePicks::Entry

Inherits:
Base
  • Object
show all
Defined in:
lib/prizepicks/objects/entry.rb

Instance Method Summary collapse

Methods inherited from Base

#attributes, #data, #initialize, #to_obstruct

Constructor Details

This class inherits a constructor from PrizePicks::Base

Instance Method Details



4
5
6
# File 'lib/prizepicks/objects/entry.rb', line 4

def related_predictions
  data.dig('relationships', 'predictions', 'data').map { |d| d['id'] }
end