Method: PostageApp::Request#arguments_to_send
- Defined in:
- lib/postageapp/request.rb
#arguments_to_send ⇒ Object
Arguments need to be appended with some some stuff before it’s ready to be send out
83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/postageapp/request.rb', line 83 def arguments_to_send hash = { 'uid' => self.uid, 'api_key' => self.api_key } if !self.arguments.nil? && !self.arguments.empty? if !PostageApp.configuration.recipient_override.nil? && self.method.to_sym == :send_message self.arguments.merge!('recipient_override' => PostageApp.configuration.recipient_override) end hash.merge!('arguments' => self.arguments.recursive_stringify_keys!) end hash end |