Sha256: bc7d3d608eabb3145b705eaebea22af91e17ad1521e2adc03a690eee5e81945c

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

module Paysio
  module APIOperations
    module Update
      def save
        if @unsaved_values.length > 0
          values = {}
          @unsaved_values.each { |k| values[k] = @values[k] }
          response, api_key = Paysio.request(:post, url, @api_key, values)
          refresh_from(response, api_key)
        end
        self
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paysio-1.0.0 lib/paysio/api_operations/update.rb