Sha256: 5591d88fa5fe1252b4f2c1915f053ab0bc8eda7d32fe82444fbd8ed34854bd75

Contents?: true

Size: 426 Bytes

Versions: 18

Compression:

Stored size: 426 Bytes

Contents

module Octobat
  class InvoiceNumberingSequence < APIResource
    extend Octobat::APIOperations::List
    include Octobat::APIOperations::Create
    include Octobat::APIOperations::Update

    def set_to_default
      response, api_key = Octobat.request(:patch, set_to_default_url, @api_key)
      refresh_from(response, api_key)
    end

    private

      def set_to_default_url
        url + '/default'
      end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
octobat-2.0.18 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.17 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.16 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.15 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.14 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.12 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.11 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.10 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.9 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.8 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.7 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.6 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.5 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.4 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.3 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.2 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.1 lib/octobat/invoice_numbering_sequence.rb
octobat-2.0.0 lib/octobat/invoice_numbering_sequence.rb