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

Version Path
ib-api-972.5 lib/models/ib/index.rb
ib-api-972.4 lib/models/ib/index.rb
ib-api-972.3.1 lib/models/ib/index.rb
ib-api-972.3 lib/models/ib/index.rb
ib-api-972.2 lib/models/ib/index.rb
ib-api-972.1 lib/models/ib/index.rb