Class: OneSignal::Configuration
- Inherits:
-
Object
- Object
- OneSignal::Configuration
- Defined in:
- lib/onesignal/configuration.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#app_id ⇒ Object
Returns the value of attribute app_id.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/onesignal/configuration.rb', line 7 def initialize @app_id = ENV['ONESIGNAL_APP_ID'] @api_key = ENV['ONESIGNAL_API_KEY'] @api_url = "https://onesignal.com/api/#{OneSignal::API_VERSION}" @active = true end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
5 6 7 |
# File 'lib/onesignal/configuration.rb', line 5 def active @active end |
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/onesignal/configuration.rb', line 5 def api_key @api_key end |
#api_url ⇒ Object
Returns the value of attribute api_url.
5 6 7 |
# File 'lib/onesignal/configuration.rb', line 5 def api_url @api_url end |
#app_id ⇒ Object
Returns the value of attribute app_id.
5 6 7 |
# File 'lib/onesignal/configuration.rb', line 5 def app_id @app_id end |