Class: Vx::Message::BuildStatus

Inherits:
Object
  • Object
show all
Includes:
Beefcake::Message
Defined in:
lib/vx/message/testing.rb,
lib/vx/message/messages.pb.rb

Defined Under Namespace

Modules: Status

Class Method Summary collapse

Class Method Details

.test_attributes(options = {}) ⇒ Object



48
49
50
51
52
53
54
55
# File 'lib/vx/message/testing.rb', line 48

def test_attributes(options = {})
  {
    build_id: 1,
    status:   0,
    tm:       1376137604,
    jobs_count: 1,
  }.merge(options)
end

.test_message(options = {}) ⇒ Object



57
58
59
# File 'lib/vx/message/testing.rb', line 57

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