Class: Submail::Configuration
- Inherits:
-
Object
- Object
- Submail::Configuration
- Defined in:
- lib/submail/configuration.rb
Instance Attribute Summary collapse
-
#message_app_id ⇒ Object
Returns the value of attribute message_app_id.
-
#message_app_key ⇒ Object
Returns the value of attribute message_app_key.
-
#signtype ⇒ Object
Returns the value of attribute signtype.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
- #message_json ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/submail/configuration.rb', line 5 def initialize( = {}) .each { |key, value| instance_variable_set("@#{key}", value) } end |
Instance Attribute Details
#message_app_id ⇒ Object
Returns the value of attribute message_app_id.
3 4 5 |
# File 'lib/submail/configuration.rb', line 3 def @message_app_id end |
#message_app_key ⇒ Object
Returns the value of attribute message_app_key.
3 4 5 |
# File 'lib/submail/configuration.rb', line 3 def @message_app_key end |
#signtype ⇒ Object
Returns the value of attribute signtype.
3 4 5 |
# File 'lib/submail/configuration.rb', line 3 def signtype @signtype end |
Instance Method Details
#message_json ⇒ Object
11 12 13 |
# File 'lib/submail/configuration.rb', line 11 def { "appid" => , "appkey" => , "signtype" => signtype } end |