Sha256: 9048fe373fc0c8bbf8552e4e3a2422e566685c171bd6a3bf58668d2040b863f4

Contents?: true

Size: 390 Bytes

Versions: 9

Compression:

Stored size: 390 Bytes

Contents

module Octobat
  class Order < APIResource
    extend Octobat::APIOperations::List
    include Octobat::APIOperations::Update
    
    def expire(params = {}, opts = {})
      response, api_key = Octobat.request(:patch, expire_url, @api_key, params, opts)
      refresh_from(response, api_key)
    end

    private
      def expire_url
        url + '/expire'
      end
      

  end


end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
octobat-2.0.27 lib/octobat/order.rb
octobat-2.0.26 lib/octobat/order.rb
octobat-2.0.25 lib/octobat/order.rb
octobat-2.0.24 lib/octobat/order.rb
octobat-2.0.23 lib/octobat/order.rb
octobat-2.0.22 lib/octobat/order.rb
octobat-2.0.21 lib/octobat/order.rb
octobat-2.0.20 lib/octobat/order.rb
octobat-2.0.19 lib/octobat/order.rb