Class: Gotenberg::Analyzers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gotenberg/analyzers/base.rb

Direct Known Subclasses

Css, Image, Js, Resource

Constant Summary collapse

URI_REGEXP =
%r{^[-a-z]+://|^(?:cid|data):|^//}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource) ⇒ Base

Returns a new instance of Base.



13
14
15
# File 'lib/gotenberg/analyzers/base.rb', line 13

def initialize resource
  @resource = resource
end

Instance Attribute Details

#resourceObject

Returns the value of attribute resource.



11
12
13
# File 'lib/gotenberg/analyzers/base.rb', line 11

def resource
  @resource
end

Instance Method Details

#callObject



17
18
19
# File 'lib/gotenberg/analyzers/base.rb', line 17

def call
  self
end