Sha256: df58a7070a25457b9568118d61ecc5829172b1a4b207611ab9013420046861ee

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 Bytes

Contents

# frozen_string_literal: true

require_relative '../operation'

module LedgerSync
  module Xero
    class Operation
      class Create
        include Xero::Operation::Mixin

        private

        def operate
          response_to_operation_result(
            response: client.post(
              path: ledger_resource_type_for_path,
              payload: [
                serializer.serialize(resource: resource)
              ]
            )
          )
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ledger_sync-xero-0.1.0 lib/ledger_sync/xero/operation/create.rb