Class: Travis::Client::Artifact

Inherits:
Entity
  • Object
show all
Defined in:
lib/travis/client/artifact.rb

Constant Summary collapse

CHUNKED =
"application/json; chunked=true; version=2, application/json; version=2"

Constants inherited from Entity

Entity::MAP

Instance Attribute Summary collapse

Attributes inherited from Entity

#attributes, #curry, #id, #session

Instance Method Summary collapse

Methods inherited from Entity

#[], #[]=, aka, #attribute_names, attributes, #cancelable?, cast_id, #complete?, has, #include?, #initialize, #inspect, inspect_info, #load, many, #missing?, one, relations, #relations, #reload, #restartable?, subclass_for, subclasses, time, #update_attributes

Constructor Details

This class inherits a constructor from Travis::Client::Entity

Instance Attribute Details

#body(stream = block_given?) ) ⇒ Object (readonly)

Returns the value of attribute body.



1
2
3
# File 'lib/travis/client/artifact.rb', line 1

def body
  @body
end

#jobObject (readonly)

Returns the value of attribute job.



1
2
3
# File 'lib/travis/client/artifact.rb', line 1

def job
  @job
end

#job_idObject (readonly)

Returns the value of attribute job_id.



1
2
3
# File 'lib/travis/client/artifact.rb', line 1

def job_id
  @job_id
end

#typeObject (readonly)

Returns the value of attribute type.



1
2
3
# File 'lib/travis/client/artifact.rb', line 1

def type
  @type
end

Instance Method Details

#clean_bodyObject



24
25
26
# File 'lib/travis/client/artifact.rb', line 24

def clean_body
  attributes['clean_body'] ||= Tools::SafeString.clean(body)
end

#colorized_bodyObject



20
21
22
# File 'lib/travis/client/artifact.rb', line 20

def colorized_body
  attributes['colorized_body'] ||= Tools::SafeString.colorized(body)
end

#encoded_bodyObject



16
17
18
# File 'lib/travis/client/artifact.rb', line 16

def encoded_body
  Tools::SafeString.encoded(body)
end

#pusher_entityObject



58
59
60
# File 'lib/travis/client/artifact.rb', line 58

def pusher_entity
  job
end