Class: Twizo::NumberLookupParams
- Defined in:
- lib/twizo/modules/params/number_lookup_params.rb
Instance Attribute Summary collapse
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#numbers ⇒ Object
Returns the value of attribute numbers.
-
#result_type ⇒ Object
Returns the value of attribute result_type.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#validity ⇒ Object
Returns the value of attribute validity.
Instance Method Summary collapse
Methods inherited from Params
#format_input, #format_to_array
Instance Attribute Details
#callback_url ⇒ Object
Returns the value of attribute callback_url.
7 8 9 |
# File 'lib/twizo/modules/params/number_lookup_params.rb', line 7 def callback_url @callback_url end |
#numbers ⇒ Object
Returns the value of attribute numbers.
7 8 9 |
# File 'lib/twizo/modules/params/number_lookup_params.rb', line 7 def numbers @numbers end |
#result_type ⇒ Object
Returns the value of attribute result_type.
7 8 9 |
# File 'lib/twizo/modules/params/number_lookup_params.rb', line 7 def result_type @result_type end |
#tag ⇒ Object
Returns the value of attribute tag.
7 8 9 |
# File 'lib/twizo/modules/params/number_lookup_params.rb', line 7 def tag @tag end |
#validity ⇒ Object
Returns the value of attribute validity.
7 8 9 |
# File 'lib/twizo/modules/params/number_lookup_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 |
# File 'lib/twizo/modules/params/number_lookup_params.rb', line 9 def to_json json = { :numbers => format_to_array(numbers), :tag => tag, :validity => validity, :resultType => result_type, :callbackUrl => callback_url, } json.to_json end |