class Twizo::WidgetParams

Attributes

allowed_types[RW]
backup_code_identifier[RW]
body_template[RW]
dcs[RW]
recipient[RW]
sender[RW]
sender_npi[RW]
sender_ton[RW]
tag[RW]
token_length[RW]
token_type[RW]

Public Instance Methods

to_json() click to toggle source
# File lib/twizo/modules/params/widget_params.rb, line 9
def to_json
  json = {
      :allowedTypes          => allowed_types,
      :recipient              => recipient,
      :backupCodeIdentifier => backup_code_identifier,
      :tokenLength            => token_length,
      :tokenType              => token_type,
      :bodyTemplate           => body_template,
      :sender                 => sender,
      :senderTon              => sender_ton,
      :senderNpi              => sender_npi,
      :tag                    => tag,
      :dcs                    => dcs
  }

  json.to_json
end