Class: Cloudrunpdf::Configuration
- Inherits:
-
Object
- Object
- Cloudrunpdf::Configuration
- Defined in:
- lib/cloudrunpdf/configuration.rb
Overview
Configuration options for gem
Constant Summary collapse
- AUTHS =
[ :google, :aliyun, :amazon ].freeze
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#cloud_function_url ⇒ Object
Returns the value of attribute cloud_function_url.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #platform ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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
#auth ⇒ Object
Returns the value of attribute auth.
6 7 8 |
# File 'lib/cloudrunpdf/configuration.rb', line 6 def auth @auth end |
#cloud_function_url ⇒ Object
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 |
#token ⇒ Object
Returns the value of attribute token.
6 7 8 |
# File 'lib/cloudrunpdf/configuration.rb', line 6 def token @token end |
Instance Method Details
#platform ⇒ Object
26 27 28 |
# File 'lib/cloudrunpdf/configuration.rb', line 26 def platform @auth.to_s.capitalize end |