Class: MetaSms::Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#fromObject

Returns the value of attribute from.



13
14
15
# File 'lib/meta_sms/configuration.rb', line 13

def from
  @from
end

#loggingObject

Returns the value of attribute logging.



13
14
15
# File 'lib/meta_sms/configuration.rb', line 13

def logging
  @logging
end

#routeObject

Returns the value of attribute route.



13
14
15
# File 'lib/meta_sms/configuration.rb', line 13

def route
  @route
end

#sms_provider_nameObject

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_keyObject

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_nameObject

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

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/meta_sms/configuration.rb', line 13

def type
  @type
end