Sha256: cd6f02851d3bc8167f3e2572ed82445eea2f09ebbba3c89f207f8b597b8ac3dc

Contents?: true

Size: 307 Bytes

Versions: 3

Compression:

Stored size: 307 Bytes

Contents

module Quandl
class Pattern
  
  define_pattern :dataset_date, /[0-9]{4}\-[0-9]{2}\-[0-9]{2}/, example: "yyyy-mm-dd"
  define_pattern :code, /[A-Z0-9_]+/, example: 'ALPHA_NUMERIC_ALL_CAPS'
  define_pattern :full_code, /(#{code}+)\/?(#{code})?/, example: "(SOURCE_CODE/)#{code.to_example}"
  
end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
quandl_client-2.7.11 lib/quandl/pattern/client.rb
quandl_client-2.7.5 lib/quandl/pattern/client.rb
quandl_client-2.7.4 lib/quandl/pattern/client.rb