lib/inpost_uk_api/resources/base.rb
# Helper to add retailer prefix option when the resource needs it
Helper to add retailer prefix option when the resource needs it
Helper to add retailer prefix option when the resource needs it
def add_retailer_prefix_option
        define_singleton_method('check_prefix_options') do |prefix_options|
          prefix_options[:retailer] = retailer
          super(prefix_options)
        end
      end
def add_retailer_prefix_option define_singleton_method ( 'check_prefix_options' ) do | prefix_options | prefix_options [ :retailer ] = retailer super ( prefix_options ) end end
Helper to add retailer prefix option when the resource needs it
Helper to add retailer prefix option when the resource needs it