Class: Gotenberg::Analyzers::Base
- Inherits:
-
Object
- Object
- Gotenberg::Analyzers::Base
- Defined in:
- lib/gotenberg/analyzers/base.rb
Constant Summary collapse
- URI_REGEXP =
%r{^[-a-z]+://|^(?:cid|data):|^//}
Instance Attribute Summary collapse
-
#resource ⇒ Object
Returns the value of attribute resource.
Instance Method Summary collapse
- #assets ⇒ Object
-
#initialize(resource) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(resource) ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/gotenberg/analyzers/base.rb', line 12 def initialize resource @resource = resource end |
Instance Attribute Details
#resource ⇒ Object
Returns the value of attribute resource.
10 11 12 |
# File 'lib/gotenberg/analyzers/base.rb', line 10 def resource @resource end |
Instance Method Details
#assets ⇒ Object
16 17 18 |
# File 'lib/gotenberg/analyzers/base.rb', line 16 def assets [binary, filename] end |