Module: Paysio::Actions::Create::ClassMethods

Defined in:
lib/paysio/actions/create.rb

Instance Method Summary collapse

Instance Method Details

#create(attrs = {}) ⇒ Object



5
6
7
8
# File 'lib/paysio/actions/create.rb', line 5

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