Class: ActsAsPushable::Configuration
- Inherits:
-
Object
- Object
- ActsAsPushable::Configuration
- Defined in:
- lib/acts_as_pushable/configuration.rb
Instance Attribute Summary collapse
-
#apn_development_certificate_path ⇒ Object
Returns the value of attribute apn_development_certificate_path.
-
#apn_production_certificate_path ⇒ Object
Returns the value of attribute apn_production_certificate_path.
-
#gcm_key ⇒ Object
Returns the value of attribute gcm_key.
Instance Method Summary collapse
- #apn_development_certificate_file ⇒ Object
- #apn_production_certificate_file ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/acts_as_pushable/configuration.rb', line 5 def initialize self.apn_development_certificate_path = Rails.root.join('config', 'acts_as_pushable', 'apn', 'development.pem') self.apn_production_certificate_path = Rails.root.join('config', 'acts_as_pushable', 'apn', 'production.pem') end |
Instance Attribute Details
#apn_development_certificate_path ⇒ Object
Returns the value of attribute apn_development_certificate_path.
3 4 5 |
# File 'lib/acts_as_pushable/configuration.rb', line 3 def apn_development_certificate_path @apn_development_certificate_path end |
#apn_production_certificate_path ⇒ Object
Returns the value of attribute apn_production_certificate_path.
3 4 5 |
# File 'lib/acts_as_pushable/configuration.rb', line 3 def apn_production_certificate_path @apn_production_certificate_path end |
#gcm_key ⇒ Object
Returns the value of attribute gcm_key.
3 4 5 |
# File 'lib/acts_as_pushable/configuration.rb', line 3 def gcm_key @gcm_key end |
Instance Method Details
#apn_development_certificate_file ⇒ Object
10 11 12 |
# File 'lib/acts_as_pushable/configuration.rb', line 10 def apn_development_certificate_file File.read(apn_development_certificate_path) end |
#apn_production_certificate_file ⇒ Object
14 15 16 |
# File 'lib/acts_as_pushable/configuration.rb', line 14 def apn_production_certificate_file File.read(apn_production_certificate_path) end |