Class: PortaText::Command::Api::Settings
- Inherits:
-
Base
- Object
- Base
- PortaText::Command::Api::Settings
show all
- Defined in:
- lib/portatext/command/api/settings.rb
Overview
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#accept_content_type, #body, #content_type, #delete, #get, #initialize, #patch, #post, #put, #set
Instance Method Details
#alert_when_credit_less_than(total) ⇒ Object
26
27
28
|
# 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) ⇒ Object
76
77
78
|
# 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) ⇒ Object
64
65
66
|
# 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) ⇒ Object
84
85
86
|
# 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) ⇒ Object
80
81
82
|
# 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) ⇒ Object
52
53
54
|
# 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) ⇒ Object
60
61
62
|
# 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) ⇒ Object
68
69
70
|
# 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) ⇒ Object
56
57
58
|
# File 'lib/portatext/command/api/settings.rb', line 56
def amd_silence_threshold(value)
set :amd_silence_threshold, value
end
|
#amd_total_time(value) ⇒ Object
72
73
74
|
# 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) ⇒ Object
48
49
50
|
# File 'lib/portatext/command/api/settings.rb', line 48
def default_credit_card(card_id)
set :default_card_id, card_id
end
|
#disable_autorecharges ⇒ Object
44
45
46
|
# File 'lib/portatext/command/api/settings.rb', line 44
def disable_autorecharges
set :autorecharge_enabled, false
end
|
#dont_alert_on_low_credit ⇒ Object
22
23
24
|
# 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 ⇒ Object
18
19
20
|
# 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 ⇒ Object
30
31
32
|
# 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) ⇒ Object
38
39
40
41
42
|
# 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) ⇒ Object
88
89
90
|
# File 'lib/portatext/command/api/settings.rb', line 88
def endpoint(_method)
'me/settings'
end
|
#publish_events_to_sns(key, secret, topic) ⇒ Object
11
12
13
14
15
16
|
# 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) ⇒ Object
34
35
36
|
# File 'lib/portatext/command/api/settings.rb', line 34
def send_inbound_by_email(email)
set :email_on_inbound_sms, email
end
|