Sha256: f4d16e4ce3c95cb443a51dc8ce19c841c3f318ff3d6cc26ec690eee483ed3382

Contents?: true

Size: 297 Bytes

Versions: 4

Compression:

Stored size: 297 Bytes

Contents

# Support class
module Webmoney
  class Wmid < String

    # Parameter: wmid - String or Wmid

    def initialize(str)
      str = str.to_s unless str.kind_of?(String)
      raise IncorrectWmidError, str unless str =~ /^\d{12}$/
      super(str)
    end
    
    def wmid; self end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
webmoney-0.0.7 lib/wmid.rb
webmoney-0.0.6 lib/wmid.rb
webmoney-0.0.5 lib/wmid.rb
webmoney-0.0.4.8 lib/wmid.rb