Sha256: ba1794d1a6f4ecfa608559c34193d464fb7023e3d1f91cd7f64090d44ff8790c
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
# frozen_string_literal: true module PuppeteerEntity module Attributes class ScriptTag < Dry::Struct transform_keys(&:to_sym) # URL of the script to be added. attribute? :url, Types::URL.optional # Path to a JavaScript file to be injected into the frame. attribute? :path, Types::String.optional # JavaScript to be injected into the frame. attribute? :content, Types::String.optional # Sets the type of the script. Use module in order to load an ES2015 module. attribute? :type, Types::Coercible::String.optional # Sets the id of the script. attribute? :id, Types::Coercible::String.optional end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppeteer_entity-0.1.1 | lib/puppeteer_entity/attributes/script_tag.rb |
puppeteer_entity-0.1.0 | lib/puppeteer_entity/attributes/script_tag.rb |