Class: STDDAPI::Run
- Inherits:
-
Object
- Object
- STDDAPI::Run
- Defined in:
- lib/stdd_api.rb
Instance Attribute Summary collapse
-
#ID ⇒ Object
Returns the value of attribute ID.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Run
constructor
A new instance of Run.
- #to_json ⇒ Object
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
#ID ⇒ Object
Returns the value of attribute ID.
122 123 124 |
# File 'lib/stdd_api.rb', line 122 def ID @ID end |
#name ⇒ Object
Returns the value of attribute name.
122 123 124 |
# File 'lib/stdd_api.rb', line 122 def name @name end |
Instance Method Details
#to_json ⇒ Object
123 124 125 |
# File 'lib/stdd_api.rb', line 123 def to_json {'name' => @name,'start_time' => @start_time}.to_json end |