Sha256: c56d82cefe91e25855790d8fd078a6af758aba66895994fe5f1af7e16929ef24

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

module Paysio
  module Actions
    module Create
      module ClassMethods
        def create(attrs = {})
          validate!(attrs)
          response = Paysio::Client.request(:post, path, attrs)
          Resource.build_from(response)
        end
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paysio-1.0.3 lib/paysio/actions/create.rb
paysio-1.0.2 lib/paysio/actions/create.rb