Sha256: 6eb6810d3c7e7c0d3353f20c7f7e799c04ab9f97399d0507030d6d5d1822c11d
Contents?: true
Size: 690 Bytes
Versions: 2
Compression:
Stored size: 690 Bytes
Contents
# frozen_string_literal: true module Bundler module Alive # # Represents Report # class Report attr_reader :result, :error_messages, :rate_limit_exceeded # # A result of report # # @param [StatusResult] result # def initialize(result) @result = result.collection @error_messages = result.error_messages @rate_limit_exceeded = result.rate_limit_exceeded freeze end # # Save result to file # # @param [String] file_path # def save_as_file(file_path) body = TomlRB.dump(result.to_h) File.write(file_path, body) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bundler-alive-0.1.4 | lib/bundler/alive/report.rb |
bundler-alive-0.1.3 | lib/bundler/alive/report.rb |