Sha256: 65550109eaf4df4741f36b409d2614e02c381ec46d3c56a71adb531175a36d21

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

module Korinthenkacker
  class JobInfo
    attr_reader :name, :url

    def initialize(json)
      @name = json['name']
      @url = json['url']
      @json = json
    end

    def build_numbers
      json['builds'].map { |build| build['number'] }
    end

    private
    attr_reader :json
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
korinthenkacker-0.0.3 lib/korinthenkacker/job_info.rb
korinthenkacker-0.0.2 lib/korinthenkacker/job_info.rb