Class: Cloudrunpdf::Providers::Aliyun
- Inherits:
-
Object
- Object
- Cloudrunpdf::Providers::Aliyun
- Defined in:
- lib/cloudrunpdf/providers/aliyun.rb
Instance Method Summary collapse
- #connection ⇒ Object
-
#initialize(configuration = nil) ⇒ Aliyun
constructor
A new instance of Aliyun.
- #token ⇒ Object
Constructor Details
#initialize(configuration = nil) ⇒ Aliyun
Returns a new instance of Aliyun.
4 5 6 7 |
# File 'lib/cloudrunpdf/providers/aliyun.rb', line 4 def initialize(configuration = nil) @configuration = configuration @token = token end |
Instance Method Details
#connection ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/cloudrunpdf/providers/aliyun.rb', line 13 def connection return unless @configuration Faraday::Connection.new( headers: { 'Content-Type' => 'application/json' }.compact ) do |conn| conn.response :raise_error end end |
#token ⇒ Object
9 10 11 |
# File 'lib/cloudrunpdf/providers/aliyun.rb', line 9 def token nil end |