Sha256: f9aec94e3447b4bf128190d4cc35a0ed502d75e071a8f1ae15b943c871c893f0

Contents?: true

Size: 206 Bytes

Versions: 8

Compression:

Stored size: 206 Bytes

Contents

class YouTrack::Parser::Base
  attr_reader :raw

  def initialize(raw)
    @raw = raw
  end

  def parse_fields(fields)
    fields.inject({}) { |r, f|
      r.merge(f["name"] => f["value"])
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
you_track-0.4.4 lib/you_track/parser/base.rb
you_track-0.4.2 lib/you_track/parser/base.rb
you_track-0.4.1 lib/you_track/parser/base.rb
you_track-0.4.0 lib/you_track/parser/base.rb
you_track-0.3.0 lib/you_track/parser/base.rb
you_track-0.2.2 lib/you_track/parser/base.rb
you_track-0.2.1 lib/you_track/parser/base.rb
you_track-0.2.0 lib/you_track/parser/base.rb