Class: Consently::Providers::Custom
- Defined in:
- lib/consently/providers/custom.rb
Overview
The escape hatch for a vendor Consently does not know about yet. Blocked and released exactly like a built-in one.
c.tag :custom, as: :piwik, category: :analytics,
src: "https://cdn.example.com/piwik.js"
c.tag :custom, as: :whatever, category: :marketing, inline: <<~JS
console.log("hello");
JS
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
build, cookie, cookie_manifest, #cookies, google?, #google?, #initialize, provider_key, provider_key=, register, registry, #to_s
Constructor Details
This class inherits a constructor from Consently::Providers::Base
Instance Method Details
#noscript ⇒ Object
20 21 22 |
# File 'lib/consently/providers/custom.rb', line 20 def noscript [:noscript] end |
#scripts ⇒ Object
16 17 18 |
# File 'lib/consently/providers/custom.rb', line 16 def scripts [ Script.new(src: [:src], inline: [:inline], async: .fetch(:async, true), data: [:data]) ] end |