Module: RandomOrgHttpApi::Configuration
- Included in:
- Generator
- Defined in:
- lib/random_org_http_api/configuration.rb
Constant Summary collapse
- DOMAIN =
'www.random.org'- DEFAULT_QUERY_PARAMS =
{ format: 'plain', base: '10', rnd: 'new', col: '1', min: '1', digits: 'on', loweralpha: 'on', upperalpha: 'on', unique: 'on' }
- INTEGER_QUERY_KEYS =
Query templates Integer
[:num, :min, :max, :col, :base, :format, :rnd]
- INTEGER_QUERY_TEMPLATE =
"/integers/?num=%{num}&min=%{min}&max=%{max}&col=%{col}&base=%{base}&format=%{format}&rnd=%{rnd}"- STRING_QUERY_KEYS =
String
[:num, :len, :digits, :upperalpha, :loweralpha, :unique, :format, :rnd]
- STRING_QUERY_TEMPLATE =
"/strings/?num=%{num}&len=%{len}&digits=%{digits}&upperalpha=%{upperalpha}&loweralpha=%{loweralpha}&unique=%{unique}&format=%{format}&rnd=%{rnd}"- SEQUENCE_QUERY_KEYS =
Sequence
[:min, :max, :col, :format, :rnd]
- SEQUENCE_QUERY_TEMPLATE =
"/sequences/?min=%{min}&max=%{max}&col=%{col}&format=%{format}&rnd=%{rnd}"