class MasterLeague::EventRepository

Public Instance Methods

order(order) click to toggle source
# File lib/master_league/event_repository.rb, line 5
def order(order)
  raise 'The Events endpoint does not allow ordering'
end

Private Instance Methods

instantiate_record(event_json) click to toggle source
# File lib/master_league/event_repository.rb, line 15
def instantiate_record(event_json)
  Event.new(event_json)
end
instantiate_records(events_json) click to toggle source
# File lib/master_league/event_repository.rb, line 11
def instantiate_records(events_json)
  events_json['results'].map { |event_json| instantiate_record(event_json) }
end