lib/neutrino/gateway/application_accounts.rb
# Creates an application account of Neutrino
#
# @return [Hash] an application account
# @raise [Exceptions::UnableToCreateApplicationAccountsError] when Neutrino returns a 400 status code
Creates an application account of Neutrino
Creates an application account of Neutrino
def create(body)
          response = request(base_uri, { method: :post }, body)
          error = JSON.parse(response.to_s)['error']
          response
            .if_400_raise(Neutrino::Gateway::Exceptions::UnableToCreateApplicationAccountsError.new([], error))
            .to_hash
        end
def create ( body ) response = request ( base_uri , { method : :post } , body ) error = JSON . parse ( response . to_s ) [ 'error' ] response . if_400_raise ( Neutrino :: Gateway :: Exceptions :: UnableToCreateApplicationAccountsError . new ( [ ] , error ) ) . to_hash end
Creates an application account of Neutrino
Creates an application account of Neutrino
an application account
an application account
Hash
[Exceptions::UnableToCreateApplicationAccountsError] when Neutrino returns a 400 status code
[ Exceptions :: UnableToCreateApplicationAccountsError ] when Neutrino returns a 400 status code
body
<not_specific>