Class: Nabortu::Methods::Register
- Defined in:
- lib/nabortu/methods/register.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
do_request, #do_request, #initialize
Constructor Details
This class inherits a constructor from Nabortu::Methods::Base
Instance Method Details
#do_prepare ⇒ Object
12 13 14 |
# File 'lib/nabortu/methods/register.rb', line 12 def do_prepare @response[:auth_result] end |
#request(params = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/nabortu/methods/register.rb', line 4 def request(params = {}) email = params[:email] || raise(Nabortu::Errors::NoParam.new :email) phone = params[:phone] || raise(Nabortu::Errors::NoParam.new :phone) password = params[:password] || raise(Nabortu::Errors::NoParam.new :password) {'tns:Email' => email, 'tns:Password' => password, 'tns:MobilePhone' => phone } end |