Sha256: 14940dd464330598edee2a69a4b87148457dad80e95d4d6e82a64a28e261f338
Contents?: true
Size: 314 Bytes
Versions: 6
Compression:
Stored size: 314 Bytes
Contents
#encoding: utf-8 # 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
webmoney-0.0.13 | lib/wmid.rb |
webmoney-0.0.12 | lib/wmid.rb |
webmoney-0.0.11 | lib/wmid.rb |
webmoney-0.0.10 | lib/wmid.rb |
webmoney-0.0.9 | lib/wmid.rb |
webmoney-0.0.8 | lib/wmid.rb |