Class: BatchlyApi::CreateJobRequest
- Inherits:
-
Object
- Object
- BatchlyApi::CreateJobRequest
- Defined in:
- lib/batchly_api/models/create_job_request.rb
Instance Attribute Summary collapse
-
#data_source_id ⇒ String
TODO: Write general description for this method.
-
#destination_id ⇒ String
TODO: Write general description for this method.
-
#name ⇒ String
TODO: Write general description for this method.
-
#parameter_group_id ⇒ String
TODO: Write general description for this method.
-
#processor_id ⇒ String
TODO: Write general description for this method.
-
#project_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
39 40 41 |
# File 'lib/batchly_api/models/create_job_request.rb', line 39 def method_missing (method_name) puts "there's no method called '#{method_name}'" end |
Instance Attribute Details
#data_source_id ⇒ String
TODO: Write general description for this method
20 21 22 |
# File 'lib/batchly_api/models/create_job_request.rb', line 20 def data_source_id @data_source_id end |
#destination_id ⇒ String
TODO: Write general description for this method
28 29 30 |
# File 'lib/batchly_api/models/create_job_request.rb', line 28 def destination_id @destination_id end |
#name ⇒ String
TODO: Write general description for this method
8 9 10 |
# File 'lib/batchly_api/models/create_job_request.rb', line 8 def name @name end |
#parameter_group_id ⇒ String
TODO: Write general description for this method
24 25 26 |
# File 'lib/batchly_api/models/create_job_request.rb', line 24 def parameter_group_id @parameter_group_id end |
#processor_id ⇒ String
TODO: Write general description for this method
16 17 18 |
# File 'lib/batchly_api/models/create_job_request.rb', line 16 def processor_id @processor_id end |
#project_id ⇒ String
TODO: Write general description for this method
12 13 14 |
# File 'lib/batchly_api/models/create_job_request.rb', line 12 def project_id @project_id end |
#region ⇒ String
TODO: Write general description for this method
32 33 34 |
# File 'lib/batchly_api/models/create_job_request.rb', line 32 def region @region end |
#sla ⇒ Double
TODO: Write general description for this method
36 37 38 |
# File 'lib/batchly_api/models/create_job_request.rb', line 36 def sla @sla end |
Instance Method Details
#key_map ⇒ Object
Defines the key map for json serialization
50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/batchly_api/models/create_job_request.rb', line 50 def key_map hash = {} hash['Name'] = self.name hash['ProjectId'] = self.project_id hash['ProcessorId'] = self.processor_id hash['DataSourceId'] = self.data_source_id hash['ParameterGroupId'] = self.parameter_group_id hash['DestinationId'] = self.destination_id hash['Region'] = self.region hash['SLA'] = self.sla hash end |
#to_json ⇒ Object
Creates JSON of the curent object
44 45 46 47 |
# File 'lib/batchly_api/models/create_job_request.rb', line 44 def to_json hash = self.key_map() hash.to_json end |