Sha256: 13f6982e92b0c5f49b6f1f116649975bf069fbcac8cf2ae3d9d485fd96413bc2

Contents?: true

Size: 360 Bytes

Versions: 3

Compression:

Stored size: 360 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_key = Maestrano::API::Operation::Base.request(:delete, url, @api_key)
        refresh_from(response, api_key)
        self
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
maestrano-0.3.0 lib/maestrano/account/bill.rb
maestrano-0.2.0 lib/maestrano/account/bill.rb
maestrano-0.1.0 lib/maestrano/account/bill.rb