Sha256: 35c28f5f17910691e877663ef669b3ec6f34f1e1f43ad9402ac237fefd284d2c

Contents?: true

Size: 394 Bytes

Versions: 22

Compression:

Stored size: 394 Bytes

Contents

module Maestrano
  module Account
    class RecurringBill < 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-0.12.1 lib/maestrano/account/recurring_bill.rb
maestrano-0.12.0 lib/maestrano/account/recurring_bill.rb