Class: Vx::Lib::Message::JobStatus

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

Defined Under Namespace

Modules: Status

Class Method Summary collapse

Class Method Details

.test_attributes(options = {}) ⇒ Object



26
27
28
29
30
31
# File 'lib/vx/lib/message/testing.rb', line 26

def test_attributes(options = {})
  Message.common.merge(
    status:     0,
    tm:         1376137604,
  ).merge(options)
end

.test_message(options = {}) ⇒ Object



33
34
35
# File 'lib/vx/lib/message/testing.rb', line 33

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