Class: SerwerSMS::Resources::Accounts
- Inherits:
-
Object
- Object
- SerwerSMS::Resources::Accounts
- Defined in:
- lib/serwersms/resources/accounts.rb
Instance Method Summary collapse
-
#add(params = {}) ⇒ Hash
Register new account.
-
#help(params = {}) ⇒ Hash
Return contact details.
-
#initialize(client) ⇒ Accounts
constructor
A new instance of Accounts.
-
#limits(params = {}) ⇒ Hash
Return SMS limits for account.
-
#messages(params = {}) ⇒ Hash
Return messages from the administrator.
Constructor Details
#initialize(client) ⇒ Accounts
Returns a new instance of Accounts.
4 5 6 |
# File 'lib/serwersms/resources/accounts.rb', line 4 def initialize(client) @client = client end |
Instance Method Details
#add(params = {}) ⇒ Hash
Register new account
18 19 20 |
# File 'lib/serwersms/resources/accounts.rb', line 18 def add(params = {}) @client.call('account/add', params) end |
#help(params = {}) ⇒ Hash
Return contact details
45 46 47 |
# File 'lib/serwersms/resources/accounts.rb', line 45 def help(params = {}) @client.call('account/help', params) end |
#limits(params = {}) ⇒ Hash
Return SMS limits for account
29 30 31 |
# File 'lib/serwersms/resources/accounts.rb', line 29 def limits(params = {}) @client.call('account/limits', params) end |
#messages(params = {}) ⇒ Hash
Return messages from the administrator
54 55 56 |
# File 'lib/serwersms/resources/accounts.rb', line 54 def (params = {}) @client.call('account/messages', params) end |