Class: Maestrano::Account::Bill
- Inherits:
-
Maestrano::API::Resource
- Object
- Maestrano::API::Object
- Maestrano::API::Resource
- Maestrano::Account::Bill
- Defined in:
- lib/maestrano/account/bill.rb
Instance Attribute Summary
Attributes inherited from Maestrano::API::Object
Instance Method Summary collapse
Methods included from Maestrano::API::Operation::Create
Methods included from Maestrano::API::Operation::List
Methods inherited from Maestrano::API::Resource
class_name, #refresh, retrieve, underscore, url, #url
Methods inherited from Maestrano::API::Object
#[], #[]=, #_dump, _load, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #respond_to?, #to_hash, #to_json, #to_s, #values
Methods included from Preset
Constructor Details
This class inherits a constructor from Maestrano::API::Object
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Maestrano::API::Object
Instance Method Details
#cancel ⇒ Object
7 8 9 10 11 |
# File 'lib/maestrano/account/bill.rb', line 7 def cancel response, api_token = Maestrano::API::Operation::Base[self.class.preset].request(:delete, url, @api_token) refresh_from(response, api_token) self end |