Sha256: 0a3d8bbf85752597b3a31ac587bcb186bd212f02b6f38eaf96257c5926f53781
Contents?: true
Size: 648 Bytes
Versions: 9
Compression:
Stored size: 648 Bytes
Contents
# encoding: utf-8 require 'travis/client' module Travis module Client class Artifact < Entity # @!parse attr_reader :job_id, :type, :body attributes :job_id, :type, :body # @!parse attr_reader :job has :job def encoded_body return body unless body.respond_to? :encode body.encode 'utf-8' end def colorized_body attributes['colorized_body'] ||= encoded_body.gsub(/[^[:print:]\e\n]/, '') end def clean_body attributes['clean_body'] ||= colorized_body.gsub(/\e[^m]+m/, '') end one :log many :logs aka :artifact end end end
Version data entries
9 entries across 9 versions & 1 rubygems