Sha256: 610d3c9100ec64fa190752b96e18900838c7f3bb1bfea9ff60e6cfdc54c54ba1
Contents?: true
Size: 341 Bytes
Versions: 6
Compression:
Stored size: 341 Bytes
Contents
#require 'models/ib/contract' module IB class Index < Contract validates_format_of :sec_type, :with => /\Aind\z/, :message => "should be a Index" def default_attributes super.merge :sec_type => :ind end def to_human "<Index: " + [symbol, currency].join(" ") + " (#{description}) >" end end end
Version data entries
6 entries across 6 versions & 1 rubygems