Class: Twizo::VerificationParams
- Defined in:
- lib/twizo/modules/params/verification_params.rb
Instance Attribute Summary collapse
-
#body_template ⇒ Object
Returns the value of attribute body_template.
-
#dcs ⇒ Object
Returns the value of attribute dcs.
-
#recipient ⇒ Object
Returns the value of attribute recipient.
-
#sender ⇒ Object
Returns the value of attribute sender.
-
#sender_npi ⇒ Object
Returns the value of attribute sender_npi.
-
#sender_ton ⇒ Object
Returns the value of attribute sender_ton.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#token_length ⇒ Object
Returns the value of attribute token_length.
-
#token_type ⇒ Object
Returns the value of attribute token_type.
-
#type ⇒ Object
Returns the value of attribute type.
-
#validity ⇒ Object
Returns the value of attribute validity.
Instance Method Summary collapse
Methods inherited from Params
#format_input, #format_to_array
Instance Attribute Details
#body_template ⇒ Object
Returns the value of attribute body_template.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def body_template @body_template end |
#dcs ⇒ Object
Returns the value of attribute dcs.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def dcs @dcs end |
#recipient ⇒ Object
Returns the value of attribute recipient.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def recipient @recipient end |
#sender ⇒ Object
Returns the value of attribute sender.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def sender @sender end |
#sender_npi ⇒ Object
Returns the value of attribute sender_npi.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def sender_npi @sender_npi end |
#sender_ton ⇒ Object
Returns the value of attribute sender_ton.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def sender_ton @sender_ton end |
#session_id ⇒ Object
Returns the value of attribute session_id.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def session_id @session_id end |
#tag ⇒ Object
Returns the value of attribute tag.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def tag @tag end |
#token_length ⇒ Object
Returns the value of attribute token_length.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def token_length @token_length end |
#token_type ⇒ Object
Returns the value of attribute token_type.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def token_type @token_type end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def type @type end |
#validity ⇒ Object
Returns the value of attribute validity.
7 8 9 |
# File 'lib/twizo/modules/params/verification_params.rb', line 7 def validity @validity end |
Instance Method Details
#to_json ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/twizo/modules/params/verification_params.rb', line 9 def to_json json = { :recipient => recipient, :type => type, :tokenLength => token_length, :tokenType => token_type, :bodyTemplate => body_template, :sessionId => session_id, :sender => sender, :senderTon => sender_ton, :senderNpi => sender_npi, :tag => tag, :validity => validity, :dcs => dcs } json.to_json end |