Class: CallRecorderApi::Model::RegisterPhoneRequest
- Inherits:
-
Object
- Object
- CallRecorderApi::Model::RegisterPhoneRequest
- Defined in:
- lib/call_recorder_api/model/register_phone_request.rb
Instance Attribute Summary collapse
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, phone) ⇒ RegisterPhoneRequest
constructor
A new instance of RegisterPhoneRequest.
- #to_s ⇒ Object
Constructor Details
#initialize(token, phone) ⇒ RegisterPhoneRequest
Returns a new instance of RegisterPhoneRequest.
9 10 11 12 13 14 15 |
# File 'lib/call_recorder_api/model/register_phone_request.rb', line 9 def initialize( token, phone ) @token = token @phone = phone end |
Instance Attribute Details
#phone ⇒ Object
Returns the value of attribute phone.
7 8 9 |
# File 'lib/call_recorder_api/model/register_phone_request.rb', line 7 def phone @phone end |
#token ⇒ Object
Returns the value of attribute token.
6 7 8 |
# File 'lib/call_recorder_api/model/register_phone_request.rb', line 6 def token @token end |
Instance Method Details
#to_s ⇒ Object
17 18 19 20 21 22 |
# File 'lib/call_recorder_api/model/register_phone_request.rb', line 17 def to_s 'RegisterPhoneRequest{' + 'token=' + token.to_s + ', ' + 'phone=' + phone.to_s + '}' end |