Class: Smsapipl::Configuration
- Inherits:
-
Object
- Object
- Smsapipl::Configuration
- Defined in:
- lib/smsapipl/configuration.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#from ⇒ Object
Returns the value of attribute from.
-
#params ⇒ Object
Returns the value of attribute params.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(api: nil, token: '', from: '', params: {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(api: nil, token: '', from: '', params: {}) ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/smsapipl/configuration.rb', line 7 def initialize(api: nil, token: '', from: '', params: {}) @api = api || default_api @token = token @from = from @params = default_params.merge(params) end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
5 6 7 |
# File 'lib/smsapipl/configuration.rb', line 5 def api @api end |
#from ⇒ Object
Returns the value of attribute from.
5 6 7 |
# File 'lib/smsapipl/configuration.rb', line 5 def from @from end |
#params ⇒ Object
Returns the value of attribute params.
5 6 7 |
# File 'lib/smsapipl/configuration.rb', line 5 def params @params end |
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/smsapipl/configuration.rb', line 5 def token @token end |