module PlayWhe

Constants

BIRTHDAY

Play Whe’s birthday, July 4th, 1994

DRAW_TIMES

The times of day, represented as seconds past midnight, that Play Whe results are drawn

FOUR_DRAWS_DATE

The date that Play Whe changed to having 4 draws per day

HIGHEST_MARK

The highest Play Whe mark

LOWEST_MARK

The lowest Play Whe mark

PERIODS

The short-hand names for the time of day Play Whe results are drawn, ordered by earliest to latest

SPIRITS

The spirit name associated with each mark

THREE_DRAWS_DATE

The date that Play Whe changed to having 3 draws per day

VERSION

Public Class Methods

get() click to toggle source
# File lib/playwhe/get.rb, line 8
def get
  @_get ||= Get.new(fetcher: fetcher, parser: Parser)
end

Private Class Methods

fetcher() click to toggle source
# File lib/playwhe/get.rb, line 14
def fetcher
  settings = Settings.config

  http = ::HTTP.timeout :global,
    read: settings.http.read_timeout,
    write: settings.http.write_timeout,
    connect: settings.http.connect_timeout

  Fetcher.new(HTTP::Adapter.new(http), settings.url)
end