Class: BatchlyApi::AddProcessorRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/batchly_api/models/add_processor_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name) ⇒ Object



47
48
49
# File 'lib/batchly_api/models/add_processor_request.rb', line 47

def method_missing (method_name)
  puts "there's no method called '#{method_name}'"
end

Instance Attribute Details

#account_idString

TODO: Write general description for this method

Returns:

  • (String)


8
9
10
# File 'lib/batchly_api/models/add_processor_request.rb', line 8

def 
  @account_id
end

#class_nameString

TODO: Write general description for this method

Returns:

  • (String)


24
25
26
# File 'lib/batchly_api/models/add_processor_request.rb', line 24

def class_name
  @class_name
end

#custom_imageCustomImage

TODO: Write general description for this method

Returns:



44
45
46
# File 'lib/batchly_api/models/add_processor_request.rb', line 44

def custom_image
  @custom_image
end

#file_nameString

TODO: Write general description for this method

Returns:

  • (String)


20
21
22
# File 'lib/batchly_api/models/add_processor_request.rb', line 20

def file_name
  @file_name
end

#languageLanguageEnum

TODO: Write general description for this method

Returns:



16
17
18
# File 'lib/batchly_api/models/add_processor_request.rb', line 16

def language
  @language
end

#operating_systemOperatingSystemEnum

TODO: Write general description for this method

Returns:



12
13
14
# File 'lib/batchly_api/models/add_processor_request.rb', line 12

def operating_system
  @operating_system
end

#package_locationString

TODO: Write general description for this method

Returns:

  • (String)


36
37
38
# File 'lib/batchly_api/models/add_processor_request.rb', line 36

def package_location
  @package_location
end

#parametersArray<Parameter>

TODO: Write general description for this method

Returns:



40
41
42
# File 'lib/batchly_api/models/add_processor_request.rb', line 40

def parameters
  @parameters
end

#request_typeRequestTypeEnum

TODO: Write general description for this method

Returns:



28
29
30
# File 'lib/batchly_api/models/add_processor_request.rb', line 28

def request_type
  @request_type
end

#response_typeResponseTypeEnum

TODO: Write general description for this method

Returns:



32
33
34
# File 'lib/batchly_api/models/add_processor_request.rb', line 32

def response_type
  @response_type
end

Instance Method Details

#key_mapObject

Defines the key map for json serialization



58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/batchly_api/models/add_processor_request.rb', line 58

def key_map
  hash = {}
  hash['AccountId'] = self.
  hash['OperatingSystem'] = self.operating_system
  hash['Language'] = self.language
  hash['FileName'] = self.file_name
  hash['ClassName'] = self.class_name
  hash['RequestType'] = self.request_type
  hash['ResponseType'] = self.response_type
  hash['PackageLocation'] = self.package_location
  hash['Parameters'] = self.parameters
  hash['CustomImage'] = self.custom_image
  hash
end

#to_jsonObject

Creates JSON of the curent object



52
53
54
55
# File 'lib/batchly_api/models/add_processor_request.rb', line 52

def to_json
  hash = self.key_map()
  hash.to_json
end