Class: STDDAPI::Run

Inherits:
Object
  • Object
show all
Defined in:
lib/stdd_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Run

Returns a new instance of Run.



118
119
120
121
# File 'lib/stdd_api.rb', line 118

def initialize(name)
  @name = name
  @start_time = Time.now
end

Instance Attribute Details

#IDObject

Returns the value of attribute ID.



122
123
124
# File 'lib/stdd_api.rb', line 122

def ID
  @ID
end

#nameObject

Returns the value of attribute name.



122
123
124
# File 'lib/stdd_api.rb', line 122

def name
  @name
end

Instance Method Details

#to_jsonObject



123
124
125
# File 'lib/stdd_api.rb', line 123

def to_json
  {'name' => @name,'start_time' => @start_time}.to_json
end