Class: Rumeme::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rumeme/configuration.rb

Overview

Holds configuration attributes for sms interface

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_strategyObject

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
  @long_messages_strategy
end

#passwordObject

Returns the value of attribute password.



5
6
7
# File 'lib/rumeme/configuration.rb', line 5

def password
  @password
end

#replies_auto_confirmObject

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

#secureObject

Returns the value of attribute secure.



7
8
9
# File 'lib/rumeme/configuration.rb', line 7

def secure
  @secure
end

#use_message_idObject

Returns the value of attribute use_message_id.



6
7
8
# File 'lib/rumeme/configuration.rb', line 6

def use_message_id
  @use_message_id
end

#usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/rumeme/configuration.rb', line 4

def username
  @username
end