Class: ActsAsPushable::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/acts_as_pushable/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathObject

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_pathObject

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_keyObject

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_fileObject



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_fileObject



14
15
16
# File 'lib/acts_as_pushable/configuration.rb', line 14

def apn_production_certificate_file
  File.read(apn_production_certificate_path)
end