Class: Evrone::CI::Message::JobLog

Inherits:
ProtocolBuffers::Message
  • Object
show all
Includes:
Serializable
Defined in:
lib/evrone/ci/message.rb,
lib/evrone/ci/message/testing.rb

Class Method Summary collapse

Methods included from Serializable

#to_serialized_string

Class Method Details

.test_attributes(options = {}) ⇒ Object



76
77
78
79
80
81
82
83
84
# File 'lib/evrone/ci/message/testing.rb', line 76

def test_attributes(options = {})
  {
    build_id: 1,
    job_id:   2,
    log:      'log',
    tm:       1376137604,
    tm_usec:  1234,
  }.merge(options)
end

.test_message(options = {}) ⇒ Object



86
87
88
# File 'lib/evrone/ci/message/testing.rb', line 86

def test_message(options = {})
  new test_attributes(options)
end