Sha256: 20344f92e9818fd1c27cc4aac122daf1b1d1f925fb1d46995594e4a933d92bd5

Contents?: true

Size: 385 Bytes

Versions: 22

Compression:

Stored size: 385 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[self.class.preset].request(:delete, url, @api_token)
        refresh_from(response, api_token)
        self
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
maestrano-1.0.6 lib/maestrano/account/bill.rb
maestrano-1.0.5 lib/maestrano/account/bill.rb
maestrano-1.0.4 lib/maestrano/account/bill.rb
maestrano-1.0.3 lib/maestrano/account/bill.rb
maestrano-1.0.2 lib/maestrano/account/bill.rb
maestrano-1.0.1 lib/maestrano/account/bill.rb
maestrano-1.0.0 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC9 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC8 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC7 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC6 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC5 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC4 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC3 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC2 lib/maestrano/account/bill.rb
maestrano-1.0.0.pre.RC1 lib/maestrano/account/bill.rb
maestrano-0.12.5 lib/maestrano/account/bill.rb
maestrano-0.12.4 lib/maestrano/account/bill.rb
maestrano-0.12.3 lib/maestrano/account/bill.rb
maestrano-0.12.2 lib/maestrano/account/bill.rb