Class: Serwersms::Accounts
- Inherits:
-
Object
- Object
- Serwersms::Accounts
- Defined in:
- lib/library/accounts.rb
Instance Method Summary collapse
- #add(params = {}) ⇒ Object
- #help ⇒ Object
-
#initialize(obj) ⇒ Accounts
constructor
A new instance of Accounts.
- #limits ⇒ Object
- #messages ⇒ Object
Constructor Details
#initialize(obj) ⇒ Accounts
Returns a new instance of Accounts.
2 3 4 |
# File 'lib/library/accounts.rb', line 2 def initialize(obj) @serwersms = obj end |
Instance Method Details
#add(params = {}) ⇒ Object
17 18 19 |
# File 'lib/library/accounts.rb', line 17 def add( params = {} ) @serwersms.call('account/add',params); end |
#help ⇒ Object
49 50 51 52 |
# File 'lib/library/accounts.rb', line 49 def help() params = {} @serwersms.call('account/help',params); end |
#limits ⇒ Object
31 32 33 34 |
# File 'lib/library/accounts.rb', line 31 def limits() params = {} @serwersms.call('account/limits',params); end |
#messages ⇒ Object
60 61 62 63 |
# File 'lib/library/accounts.rb', line 60 def () params = {} @serwersms.call('account/messages',params); end |