Class: Cloudrunpdf::Configuration

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

Overview

Configuration options for gem

Constant Summary collapse

AUTHS =
[
  :google,
  :aliyun,
  :amazon
].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



14
15
16
17
18
# File 'lib/cloudrunpdf/configuration.rb', line 14

def initialize
  @cloud_function_url = 'https://cloudpdf-7zhay37huq-od.a.run.app'
  @auth = :google
  @token = nil
end

Instance Attribute Details

#authObject

Returns the value of attribute auth.



6
7
8
# File 'lib/cloudrunpdf/configuration.rb', line 6

def auth
  @auth
end

#cloud_function_urlObject

Returns the value of attribute cloud_function_url.



6
7
8
# File 'lib/cloudrunpdf/configuration.rb', line 6

def cloud_function_url
  @cloud_function_url
end

#tokenObject

Returns the value of attribute token.



6
7
8
# File 'lib/cloudrunpdf/configuration.rb', line 6

def token
  @token
end

Instance Method Details

#platformObject



26
27
28
# File 'lib/cloudrunpdf/configuration.rb', line 26

def platform
  @auth.to_s.capitalize
end