Sha256: 19d3ab53695983ec08292e515b756e4887fd717032527ad711d9b98c68f50760

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

module Paysio
  module Actions
    module Create
      module ClassMethods
        def create(attrs = {})
          response = Paysio::Client.request(:post, path, attrs)
          response["error"].blank? ? Resource.build_from(response) : response
        end
      end

      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paysio-1.0.10 lib/paysio/actions/create.rb
paysio-1.0.9 lib/paysio/actions/create.rb
paysio-1.0.8 lib/paysio/actions/create.rb
paysio-1.0.7 lib/paysio/actions/create.rb
paysio-1.0.6 lib/paysio/actions/create.rb
paysio-1.0.5 lib/paysio/actions/create.rb
paysio-1.0.4 lib/paysio/actions/create.rb