Class: Ffccmmx::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/ffccmmx/configuration.rb', line 7

def initialize
  @scope = ["https://www.googleapis.com/auth/firebase.messaging"]

  # set file path
  @json_key_io = nil

  # Or Environment Variable
  # ENV['GOOGLE_ACCOUNT_TYPE'] = 'service_account'
  # ENV['GOOGLE_CLIENT_ID'] = '000000000000000000000'
  # ENV['GOOGLE_CLIENT_EMAIL'] = '[email protected]'
  # ENV['GOOGLE_PRIVATE_KEY'] = '-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n'
  @httpx_options = nil
end

Instance Attribute Details

#httpx_optionsObject

Returns the value of attribute httpx_options.



5
6
7
# File 'lib/ffccmmx/configuration.rb', line 5

def httpx_options
  @httpx_options
end

#json_key_ioObject

Returns the value of attribute json_key_io.



5
6
7
# File 'lib/ffccmmx/configuration.rb', line 5

def json_key_io
  @json_key_io
end

#scopeObject

Returns the value of attribute scope.



5
6
7
# File 'lib/ffccmmx/configuration.rb', line 5

def scope
  @scope
end