Sha256: c09d661922821e1313353e6ed12fdbd289e369ee8f08f01716454101d243f65d

Contents?: true

Size: 305 Bytes

Versions: 3

Compression:

Stored size: 305 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.13.0 lib/quandl/pattern/client.rb
quandl_client-2.12.0 lib/quandl/pattern/client.rb
quandl_client-2.11.0 lib/quandl/pattern/client.rb