class STDDAPI::Objects::Module

Attributes

id[RW]
kind[RW]
name[RW]
run_id[RW]
start_time[RW]
stop_time[RW]

Public Class Methods

new(run_id,name,kind,start_time) click to toggle source
# File lib/objects.rb, line 57
def initialize(run_id,name,kind,start_time)
  @run_id = run_id
  @name = name
  @kind = kind
  @start_time = start_time

end

Public Instance Methods

to_json() click to toggle source
# File lib/objects.rb, line 72
def to_json
  {
    'name' => @name,
    'run_id' => @run_id,
    'kind' => @kind,
    'start_time'=> @start_time,
    'stop_time'=>@stop_time
  }.to_json
end
to_s() click to toggle source
# File lib/objects.rb, line 65
def to_s
  "name: #{@name}\n"+
  "id: #{@id}\n"+
  "run-id: #{@run_id}\n"+
  "kind: #{@kind}\n"+
  "start-time: #{@start_time}\n"
end