Class: NRL::Round

Inherits:
Base
  • Object
show all
Defined in:
lib/nrl/round.rb

Class Method Summary collapse

Methods inherited from Base

connection

Class Method Details

.allObject



14
15
16
# File 'lib/nrl/round.rb', line 14

def self.all
  connection.get('rounds.json').body.map { |attrs| Round.new(attrs) }
end