Class: PopularPages::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_emailObject

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_idObject

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_keyObject

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_idObject

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