class PortaText::Command::Api::Settings

The me/settings endpoint. github.com/PortaText/docs/wiki/REST-API#api_settings

Author

Marcelo Gornstein (marcelog@portatext.com)

Copyright

Copyright © 2015 PortaText

License

Apache-2.0

Public Instance Methods

alert_when_credit_less_than(total) click to toggle source
# File lib/portatext/command/api/settings.rb, line 26
def alert_when_credit_less_than(total)
  set :alert_when_credit_less_than, total
end
amd_after_greeting_silence(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 76
def amd_after_greeting_silence(value)
  set :amd_after_greeting_silence, value
end
amd_between_words_silence(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 64
def amd_between_words_silence(value)
  set :amd_between_words_silence, value
end
amd_initial_silence(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 84
def amd_initial_silence(value)
  set :amd_initial_silence, value
end
amd_max_greeting_length(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 80
def amd_max_greeting_length(value)
  set :amd_max_greeting_length, value
end
amd_max_word_length(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 52
def amd_max_word_length(value)
  set :amd_max_word_length, value
end
amd_max_words(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 60
def amd_max_words(value)
  set :amd_max_words, value
end
amd_min_word_length(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 68
def amd_min_word_length(value)
  set :amd_min_word_length, value
end
amd_silence_threshold(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 56
def amd_silence_threshold(value)
  set :amd_silence_threshold, value
end
amd_total_time(value) click to toggle source
# File lib/portatext/command/api/settings.rb, line 72
def amd_total_time(value)
  set :amd_total_time, value
end
default_credit_card(card_id) click to toggle source
# File lib/portatext/command/api/settings.rb, line 48
def default_credit_card(card_id)
  set :default_card_id, card_id
end
disable_autorecharges() click to toggle source
# File lib/portatext/command/api/settings.rb, line 44
def disable_autorecharges
  set :autorecharge_enabled, false
end
dont_alert_on_low_credit() click to toggle source
# File lib/portatext/command/api/settings.rb, line 22
def dont_alert_on_low_credit
  set :alert_when_credit_less_than, nil
end
dont_publish_events_to_sns() click to toggle source
# File lib/portatext/command/api/settings.rb, line 18
def dont_publish_events_to_sns
  set :sns_publish_enabled, false
end
dont_send_inbound_by_email() click to toggle source
# File lib/portatext/command/api/settings.rb, line 30
def dont_send_inbound_by_email
  set :email_on_inbound_sms, nil
end
enable_autorecharges(when_credit, total) click to toggle source
# File lib/portatext/command/api/settings.rb, line 38
def enable_autorecharges(when_credit, total)
  set :autorecharge_enabled, true
  set :autorecharge_total, total
  set :autorecharge_when_credit, when_credit
end
endpoint(_method) click to toggle source
# File lib/portatext/command/api/settings.rb, line 88
def endpoint(_method)
  'me/settings'
end
publish_events_to_sns(key, secret, topic) click to toggle source
# File lib/portatext/command/api/settings.rb, line 11
def publish_events_to_sns(key, secret, topic)
  set :sns_publish_enabled, true
  set :sns_access_key, key
  set :sns_access_secret, secret
  set :sns_topic, topic
end
send_inbound_by_email(email) click to toggle source
# File lib/portatext/command/api/settings.rb, line 34
def send_inbound_by_email(email)
  set :email_on_inbound_sms, email
end