Sha256: 04d9f9ae255610f2ad2fa9f3a56322aa2bb96cc2baf5ea491fa5df0b7af884e5

Contents?: true

Size: 253 Bytes

Versions: 1

Compression:

Stored size: 253 Bytes

Contents

module Claymore
  # Provides method to extract asset symbole
  module AssetSymbol
    ASSET_REGEXP = /(?<asset>DRC|ETH|LBC|PASC|SC)(:| -)/

    def asset_symbol(line)
      match = line.match(ASSET_REGEXP)
      match && match[:asset]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-claymore-1.0.0 lib/claymore/asset_symbol.rb