Class: Phaxio::Resources::Account
- Inherits:
-
Phaxio::Resource
- Object
- Phaxio::Resource
- Phaxio::Resources::Account
- Defined in:
- lib/phaxio/resources/account.rb
Overview
Information about your Phaxio account.
Instance Attribute Summary collapse
-
#balance ⇒ Integer
Your current account funds balance in cents.
-
#faxes_this_month ⇒ Hash<String: Integer>
A hash of the number of faxes sent and received this month.
-
#faxes_today ⇒ Hash<String: Integer>
A hash of the number of faxes sent and received today.
Class Method Summary collapse
-
.get(params = {}) ⇒ Phaxio::Resources::Acount
(also: status, retrieve)
Get information about your Phaxio account, including your balance, number of faxes sent today, and number of faxes sent this week.
Methods inherited from Phaxio::Resource
response_collection, response_record
Instance Attribute Details
#balance ⇒ Integer
Returns Your current account funds balance in cents.
|
# File 'lib/phaxio/resources/account.rb', line 8
|
#faxes_this_month ⇒ Hash<String: Integer>
Returns A hash of the number of faxes sent and received this month.
16 |
# File 'lib/phaxio/resources/account.rb', line 16 has_normal_attributes %w[balance faxes_today faxes_this_month] |
#faxes_today ⇒ Hash<String: Integer>
Returns A hash of the number of faxes sent and received today.
|
# File 'lib/phaxio/resources/account.rb', line 11
|
Class Method Details
.get(params = {}) ⇒ Phaxio::Resources::Acount Also known as: status, retrieve
Get information about your Phaxio account, including your balance, number of faxes sent today, and number of faxes sent this week.
26 27 28 29 |
# File 'lib/phaxio/resources/account.rb', line 26 def get params = {} response = Client.request :get, account_status_endpoint, params response_record response end |