Class: Chimpy::Configuration
- Inherits:
-
Object
- Object
- Chimpy::Configuration
- Defined in:
- lib/chimpy/configuration.rb
Instance Attribute Summary collapse
-
#mailchimp_api_key ⇒ Object
Returns the value of attribute mailchimp_api_key.
-
#mailchimp_list_id ⇒ Object
Returns the value of attribute mailchimp_list_id.
-
#sync_class ⇒ Object
Returns the value of attribute sync_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/chimpy/configuration.rb', line 5 def initialize @sync_class = User @mailchimp_api_key = ENV['MAILCHIMP_API_KEY'] @mailchimp_list_id = ENV['MAILCHIMP_LIST_ID'] end |
Instance Attribute Details
#mailchimp_api_key ⇒ Object
Returns the value of attribute mailchimp_api_key.
3 4 5 |
# File 'lib/chimpy/configuration.rb', line 3 def mailchimp_api_key @mailchimp_api_key end |
#mailchimp_list_id ⇒ Object
Returns the value of attribute mailchimp_list_id.
3 4 5 |
# File 'lib/chimpy/configuration.rb', line 3 def mailchimp_list_id @mailchimp_list_id end |
#sync_class ⇒ Object
Returns the value of attribute sync_class.
3 4 5 |
# File 'lib/chimpy/configuration.rb', line 3 def sync_class @sync_class end |