Sha256: c2876790cc4d63a785085e62b4e2a94e53abdca77d02ac82b6bebce204e944ea

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

json.ticker @stock.ticker
json.last   @stock.last

json.max_pain do
  @max_pain.each do |date, maps|
    json.set! date do
      json.all do
        json.array! maps['all'] do |strike, value|
          json.strike strike
          json.value value
        end
      end
    end
  end
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.41 app/views/iro/api/stocks/max_pain.json.jbuilder
iron_warbler-2.0.7.40 app/views/iro/api/stocks/max_pain.json.jbuilder