Method: Megam::Request#for_json

Defined in:
lib/megam/core/request.rb

#for_jsonObject



111
112
113
114
115
116
117
118
119
120
121
# File 'lib/megam/core/request.rb', line 111

def for_json
  result = {
    "id" => id,
    "node_id" => node_id,
    "node_name" => node_name,
    "req_type" => req_type,
    "command" => command,
    "created_at" => created_at
  }
  result
end