Class: MetaSms::Config
- Inherits:
-
Object
- Object
- MetaSms::Config
- Defined in:
- lib/meta_sms/configuration.rb
Overview
TODO: write dynamic attr_accessor. as currently it is written only for smsbox
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#logging ⇒ Object
Returns the value of attribute logging.
-
#route ⇒ Object
Returns the value of attribute route.
-
#sms_provider_name ⇒ Object
Returns the value of attribute sms_provider_name.
-
#smsbox_key ⇒ Object
Returns the value of attribute smsbox_key.
-
#smsbox_user_name ⇒ Object
Returns the value of attribute smsbox_user_name.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
15 16 17 18 19 20 21 22 23 |
# File 'lib/meta_sms/configuration.rb', line 15 def initialize @logging = false @type = 'TextSMS' @sms_provider_name = nil @smsbox_user_name = nil @smsbox_key = nil @route = nil @from = nil end |
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
13 14 15 |
# File 'lib/meta_sms/configuration.rb', line 13 def from @from end |
#logging ⇒ Object
Returns the value of attribute logging.
13 14 15 |
# File 'lib/meta_sms/configuration.rb', line 13 def logging @logging end |
#route ⇒ Object
Returns the value of attribute route.
13 14 15 |
# File 'lib/meta_sms/configuration.rb', line 13 def route @route end |
#sms_provider_name ⇒ Object
Returns the value of attribute sms_provider_name.
13 14 15 |
# File 'lib/meta_sms/configuration.rb', line 13 def sms_provider_name @sms_provider_name end |
#smsbox_key ⇒ Object
Returns the value of attribute smsbox_key.
13 14 15 |
# File 'lib/meta_sms/configuration.rb', line 13 def smsbox_key @smsbox_key end |
#smsbox_user_name ⇒ Object
Returns the value of attribute smsbox_user_name.
13 14 15 |
# File 'lib/meta_sms/configuration.rb', line 13 def smsbox_user_name @smsbox_user_name end |
#type ⇒ Object
Returns the value of attribute type.
13 14 15 |
# File 'lib/meta_sms/configuration.rb', line 13 def type @type end |