Class: Rumeme::Configuration
- Inherits:
-
Object
- Object
- Rumeme::Configuration
- Defined in:
- lib/rumeme/configuration.rb
Overview
Holds configuration attributes for sms interface
Instance Attribute Summary collapse
-
#long_messages_strategy ⇒ Object
possible values :send - sends messages as is without any modification :split - splits messages into small (less than 160 ch) messages :cut - sends only first 160 symbols.
-
#password ⇒ Object
Returns the value of attribute password.
-
#replies_auto_confirm ⇒ Object
Returns the value of attribute replies_auto_confirm.
-
#secure ⇒ Object
Returns the value of attribute secure.
-
#use_message_id ⇒ Object
Returns the value of attribute use_message_id.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 |
# File 'lib/rumeme/configuration.rb', line 17 def initialize @replies_auto_confirm = true @long_messages_strategy = :send end |
Instance Attribute Details
#long_messages_strategy ⇒ Object
possible values :send - sends messages as is without any modification :split - splits messages into small (less than 160 ch) messages :cut - sends only first 160 symbols
15 16 17 |
# File 'lib/rumeme/configuration.rb', line 15 def @long_messages_strategy end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'lib/rumeme/configuration.rb', line 5 def password @password end |
#replies_auto_confirm ⇒ Object
Returns the value of attribute replies_auto_confirm.
8 9 10 |
# File 'lib/rumeme/configuration.rb', line 8 def replies_auto_confirm @replies_auto_confirm end |
#secure ⇒ Object
Returns the value of attribute secure.
7 8 9 |
# File 'lib/rumeme/configuration.rb', line 7 def secure @secure end |
#use_message_id ⇒ Object
Returns the value of attribute use_message_id.
6 7 8 |
# File 'lib/rumeme/configuration.rb', line 6 def @use_message_id end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/rumeme/configuration.rb', line 4 def username @username end |