Class: BatchlyApi::ExecuteJobRequest
- Inherits:
-
Object
- Object
- BatchlyApi::ExecuteJobRequest
- Defined in:
- lib/batchly_api/models/execute_job_request.rb
Instance Attribute Summary collapse
-
#parameter_group_id ⇒ String
TODO: Write general description for this method.
-
#region ⇒ String
TODO: Write general description for this method.
-
#sla ⇒ Double
TODO: Write general description for this method.
Instance Method Summary collapse
-
#key_map ⇒ Object
Defines the key map for json serialization.
- #method_missing(method_name) ⇒ Object
-
#to_json ⇒ Object
Creates JSON of the curent object.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name) ⇒ Object
19 20 21 |
# File 'lib/batchly_api/models/execute_job_request.rb', line 19 def method_missing (method_name) puts "there's no method called '#{method_name}'" end |
Instance Attribute Details
#parameter_group_id ⇒ String
TODO: Write general description for this method
16 17 18 |
# File 'lib/batchly_api/models/execute_job_request.rb', line 16 def parameter_group_id @parameter_group_id end |
#region ⇒ String
TODO: Write general description for this method
12 13 14 |
# File 'lib/batchly_api/models/execute_job_request.rb', line 12 def region @region end |
#sla ⇒ Double
TODO: Write general description for this method
8 9 10 |
# File 'lib/batchly_api/models/execute_job_request.rb', line 8 def sla @sla end |
Instance Method Details
#key_map ⇒ Object
Defines the key map for json serialization
30 31 32 33 34 35 36 |
# File 'lib/batchly_api/models/execute_job_request.rb', line 30 def key_map hash = {} hash['SLA'] = self.sla hash['Region'] = self.region hash['ParameterGroupId'] = self.parameter_group_id hash end |
#to_json ⇒ Object
Creates JSON of the curent object
24 25 26 27 |
# File 'lib/batchly_api/models/execute_job_request.rb', line 24 def to_json hash = self.key_map() hash.to_json end |