Module: Mailjet::Configuration
- Defined in:
- lib/mailjet/configuration.rb
Constant Summary collapse
- DEFAULT =
{ api_version: 'v3', sandbox_mode: false, end_point: 'https://api.mailjet.com', perform_api_call: true, }
Class Method Summary collapse
- .api_key ⇒ Object
- .api_key=(api_key) ⇒ Object
- .api_version ⇒ Object
- .api_version=(api_version) ⇒ Object
- .default_from ⇒ Object
- .default_from=(default_from) ⇒ Object
- .end_point ⇒ Object
- .end_point=(end_point) ⇒ Object
- .perform_api_call ⇒ Object
- .perform_api_call=(perform_api_call) ⇒ Object
- .sandbox_mode ⇒ Object
- .sandbox_mode=(sandbox_mode) ⇒ Object
- .secret_key ⇒ Object
- .secret_key=(secret_key) ⇒ Object
Class Method Details
.api_key ⇒ Object
3 4 5 |
# File 'lib/mailjet/configuration.rb', line 3 def self.api_key @api_key end |
.api_key=(api_key) ⇒ Object
7 8 9 |
# File 'lib/mailjet/configuration.rb', line 7 def self.api_key=(api_key) @api_key = api_key end |
.api_version ⇒ Object
27 28 29 |
# File 'lib/mailjet/configuration.rb', line 27 def self.api_version @api_version end |
.api_version=(api_version) ⇒ Object
31 32 33 |
# File 'lib/mailjet/configuration.rb', line 31 def self.api_version=(api_version) @api_version = api_version end |
.default_from ⇒ Object
19 20 21 |
# File 'lib/mailjet/configuration.rb', line 19 def self.default_from @default_from end |
.default_from=(default_from) ⇒ Object
23 24 25 |
# File 'lib/mailjet/configuration.rb', line 23 def self.default_from=(default_from) @default_from = default_from end |
.end_point ⇒ Object
43 44 45 |
# File 'lib/mailjet/configuration.rb', line 43 def self.end_point @end_point end |
.end_point=(end_point) ⇒ Object
47 48 49 |
# File 'lib/mailjet/configuration.rb', line 47 def self.end_point=(end_point) @end_point = end_point end |
.perform_api_call ⇒ Object
51 52 53 |
# File 'lib/mailjet/configuration.rb', line 51 def self.perform_api_call @perform_api_call end |
.perform_api_call=(perform_api_call) ⇒ Object
55 56 57 |
# File 'lib/mailjet/configuration.rb', line 55 def self.perform_api_call=(perform_api_call) @perform_api_call = perform_api_call end |
.sandbox_mode ⇒ Object
35 36 37 |
# File 'lib/mailjet/configuration.rb', line 35 def self.sandbox_mode @sandbox_mode end |
.sandbox_mode=(sandbox_mode) ⇒ Object
39 40 41 |
# File 'lib/mailjet/configuration.rb', line 39 def self.sandbox_mode=(sandbox_mode) @sandbox_mode = sandbox_mode end |
.secret_key ⇒ Object
11 12 13 |
# File 'lib/mailjet/configuration.rb', line 11 def self.secret_key @secret_key end |
.secret_key=(secret_key) ⇒ Object
15 16 17 |
# File 'lib/mailjet/configuration.rb', line 15 def self.secret_key=(secret_key) @secret_key = secret_key end |