Sha256: a280f528bab34c4a1b569c2fa8dcd1d93433b897503b096ddbbe6a84053ec447

Contents?: true

Size: 288 Bytes

Versions: 16

Compression:

Stored size: 288 Bytes

Contents

module Gaku
  module Grading
    module Single
      class Result

        def initialize(exam_id, result)
          @exam_id = exam_id
          @result = result
        end

        def as_json
          @result.merge(exam_id: @exam_id).as_json
        end

      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_core-0.3.0 lib/gaku/grading/single/result.rb
gaku_core-0.3.0.pre.4 lib/gaku/grading/single/result.rb
gaku_core-0.3.0.pre.3 lib/gaku/grading/single/result.rb
gaku_core-0.3.0.pre.2 lib/gaku/grading/single/result.rb
gaku_core-0.3.0.pre.1 lib/gaku/grading/single/result.rb
gaku_core-0.3.0.pre.0 lib/gaku/grading/single/result.rb
gaku-0.2.4 core/lib/gaku/grading/single/result.rb
gaku_core-0.2.4 lib/gaku/grading/single/result.rb
gaku-0.2.3 core/lib/gaku/grading/single/result.rb
gaku_core-0.2.3 lib/gaku/grading/single/result.rb
gaku-0.2.2 core/lib/gaku/grading/single/result.rb
gaku_core-0.2.2 lib/gaku/grading/single/result.rb
gaku-0.2.1 core/lib/gaku/grading/single/result.rb
gaku_core-0.2.1 lib/gaku/grading/single/result.rb
gaku-0.2.0 core/lib/gaku/grading/single/result.rb
gaku_core-0.2.0 lib/gaku/grading/single/result.rb