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
15
16
17
|
# File 'lib/portatext/command/api/settings.rb', line 15
def alert_when_credit_less_than(total)
set :alert_when_credit_less_than, total
end
|
#amd_after_greeting_silence(value) ⇒ Object
65
66
67
|
# File 'lib/portatext/command/api/settings.rb', line 65
def amd_after_greeting_silence(value)
set :amd_after_greeting_silence, value
end
|
#amd_between_words_silence(value) ⇒ Object
53
54
55
|
# File 'lib/portatext/command/api/settings.rb', line 53
def amd_between_words_silence(value)
set :amd_between_words_silence, value
end
|
#amd_initial_silence(value) ⇒ Object
73
74
75
|
# File 'lib/portatext/command/api/settings.rb', line 73
def amd_initial_silence(value)
set :amd_initial_silence, value
end
|
#amd_max_greeting_length(value) ⇒ Object
69
70
71
|
# File 'lib/portatext/command/api/settings.rb', line 69
def amd_max_greeting_length(value)
set :amd_max_greeting_length, value
end
|
#amd_max_word_length(value) ⇒ Object
41
42
43
|
# File 'lib/portatext/command/api/settings.rb', line 41
def amd_max_word_length(value)
set :amd_max_word_length, value
end
|
#amd_max_words(value) ⇒ Object
49
50
51
|
# File 'lib/portatext/command/api/settings.rb', line 49
def amd_max_words(value)
set :amd_max_words, value
end
|
#amd_min_word_length(value) ⇒ Object
57
58
59
|
# File 'lib/portatext/command/api/settings.rb', line 57
def amd_min_word_length(value)
set :amd_min_word_length, value
end
|
#amd_silence_threshold(value) ⇒ Object
45
46
47
|
# File 'lib/portatext/command/api/settings.rb', line 45
def amd_silence_threshold(value)
set :amd_silence_threshold, value
end
|
#amd_total_time(value) ⇒ Object
61
62
63
|
# File 'lib/portatext/command/api/settings.rb', line 61
def amd_total_time(value)
set :amd_total_time, value
end
|
#default_credit_card(card_id) ⇒ Object
37
38
39
|
# File 'lib/portatext/command/api/settings.rb', line 37
def default_credit_card(card_id)
set :default_card_id, card_id
end
|
#disable_autorecharges ⇒ Object
33
34
35
|
# File 'lib/portatext/command/api/settings.rb', line 33
def disable_autorecharges
set :autorecharge_enabled, false
end
|
#dont_alert_on_low_credit ⇒ Object
11
12
13
|
# File 'lib/portatext/command/api/settings.rb', line 11
def dont_alert_on_low_credit
set :alert_when_credit_less_than, nil
end
|
#dont_send_inbound_by_email ⇒ Object
19
20
21
|
# File 'lib/portatext/command/api/settings.rb', line 19
def dont_send_inbound_by_email
set :email_on_inbound_sms, nil
end
|
#enable_autorecharges(when_credit, total) ⇒ Object
27
28
29
30
31
|
# File 'lib/portatext/command/api/settings.rb', line 27
def enable_autorecharges(when_credit, total)
set :autorecharge_enabled, true
set :autorecharge_total, total
set :autorecharge_when_credit, when_credit
end
|
#endpoint(_method) ⇒ Object
77
78
79
|
# File 'lib/portatext/command/api/settings.rb', line 77
def endpoint(_method)
'me/settings'
end
|
#send_inbound_by_email(email) ⇒ Object
23
24
25
|
# File 'lib/portatext/command/api/settings.rb', line 23
def send_inbound_by_email(email)
set :email_on_inbound_sms, email
end
|