Class: Phaxio::Resources::Account

Inherits:
Phaxio::Resource show all
Defined in:
lib/phaxio/resources/account.rb

Overview

Information about your Phaxio account.

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Phaxio::Resource

response_collection, response_record

Instance Attribute Details

#balanceInteger


# File 'lib/phaxio/resources/account.rb', line 8


#faxes_this_monthHash<String: Integer>


16
# File 'lib/phaxio/resources/account.rb', line 16

has_normal_attributes %w[balance faxes_today faxes_this_month]

#faxes_todayHash<String: Integer>


# 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, , params
  response_record response
end