Sha256: 1e91fe5581c2e17fef014c1a596a74b80f082ed262538dabd0c739e3844ed6b2
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
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 colorized_body attributes['colorized_body'] ||= 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
travis-1.2.2 | lib/travis/client/artifact.rb |
travis-1.2.1 | lib/travis/client/artifact.rb |
travis-1.2.0 | lib/travis/client/artifact.rb |