Sha256: c114caa14fe69793c0adb1f473ed87edabab51d5b6a6b430e3de3aa9af1ab5c2

Contents?: true

Size: 366 Bytes

Versions: 13

Compression:

Stored size: 366 Bytes

Contents

module Maestrano
  module Account
    class Bill < Maestrano::API::Resource
      include Maestrano::API::Operation::List
      include Maestrano::API::Operation::Create

      def cancel
        response, api_token = Maestrano::API::Operation::Base.request(:delete, url, @api_token)
        refresh_from(response, api_token)
        self
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
maestrano-0.11.0 lib/maestrano/account/bill.rb
maestrano-0.10.0 lib/maestrano/account/bill.rb
maestrano-0.9.2 lib/maestrano/account/bill.rb
maestrano-0.9.1 lib/maestrano/account/bill.rb
maestrano-0.9.0 lib/maestrano/account/bill.rb
maestrano-ruby-test-0.8.3 lib/maestrano/account/bill.rb
maestrano-0.8.2 lib/maestrano/account/bill.rb
maestrano-0.8.1 lib/maestrano/account/bill.rb
maestrano-0.8.0 lib/maestrano/account/bill.rb
maestrano-0.7.0 lib/maestrano/account/bill.rb
maestrano-0.6.0 lib/maestrano/account/bill.rb
maestrano-0.5.0 lib/maestrano/account/bill.rb
maestrano-0.4.0 lib/maestrano/account/bill.rb