Class: PopularPages::Configuration
- Inherits:
-
Object
- Object
- PopularPages::Configuration
- Defined in:
- lib/popular_pages/configuration.rb
Instance Attribute Summary collapse
-
#client_email ⇒ Object
Returns the value of attribute client_email.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#private_key_id ⇒ Object
Returns the value of attribute private_key_id.
Instance Method Summary collapse
-
#initialize(private_key_id = ENV['GOOGLE_PRIVATE_KEY_ID'], private_key = ENV['GOOGLE_PRIVATE_KEY'], client_email = ENV['GOOGLE_CLIENT_EMAIL'], client_id = ENV['GOOGLE_CLIENT_ID']) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(private_key_id = ENV['GOOGLE_PRIVATE_KEY_ID'], private_key = ENV['GOOGLE_PRIVATE_KEY'], client_email = ENV['GOOGLE_CLIENT_EMAIL'], client_id = ENV['GOOGLE_CLIENT_ID']) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 13 |
# File 'lib/popular_pages/configuration.rb', line 5 def initialize(private_key_id = ENV['GOOGLE_PRIVATE_KEY_ID'], private_key = ENV['GOOGLE_PRIVATE_KEY'], client_email = ENV['GOOGLE_CLIENT_EMAIL'], client_id = ENV['GOOGLE_CLIENT_ID']) @private_key_id = private_key_id @private_key = private_key @client_email = client_email @client_id = client_id end |
Instance Attribute Details
#client_email ⇒ Object
Returns the value of attribute client_email.
3 4 5 |
# File 'lib/popular_pages/configuration.rb', line 3 def client_email @client_email end |
#client_id ⇒ Object
Returns the value of attribute client_id.
3 4 5 |
# File 'lib/popular_pages/configuration.rb', line 3 def client_id @client_id end |
#private_key ⇒ Object
Returns the value of attribute private_key.
3 4 5 |
# File 'lib/popular_pages/configuration.rb', line 3 def private_key @private_key end |
#private_key_id ⇒ Object
Returns the value of attribute private_key_id.
3 4 5 |
# File 'lib/popular_pages/configuration.rb', line 3 def private_key_id @private_key_id end |