lib/amazon_product_advertising_api/operations/browse_node.rb
# This simply looks at the defined parameters and creates a hash of the ones that have values assigned.
# Need to work out a way of doing this so I don't need to keep defining exactly the same method in each class.
This simply looks at the defined parameters and creates a hash of the ones that have values assigned.
Need to work out a way of doing this so I don't need to keep defining exactly the same method in each class.
This simply looks at the defined parameters and creates a hash of the ones that have values assigned . Need to work out a way of doing this so I don ' t need to keep defining exactly the same method in each class .
def params
            REQUEST_PARAMETERS.inject({}) do |parameters, parameter|
              parameters[parameter] = eval("self.#{parameter}") unless eval("self.#{parameter}.nil?")
              parameters
            end
          end
def params REQUEST_PARAMETERS . inject ( { } ) do | parameters , parameter | parameters [ parameter ] = eval ( "self.#{parameter}" ) unless eval ( "self.#{parameter}.nil?" ) parameters end end
This simply looks at the defined parameters and creates a hash of the ones that have values assigned.
This simply looks at the defined parameters and creates a hash of the ones that have values assigned .