Class: BreezyPDF::Intercept::Base

Inherits:
Object
  • Object
show all
Includes:
Rack::Request::Env, Rack::Request::Helpers
Defined in:
lib/breezy_pdf/intercept/base.rb

Overview

:nodoc

Direct Known Subclasses

PrivateUrl, PublicUrl

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
# File 'lib/breezy_pdf/intercept/base.rb', line 11

def initialize(app, env)
  @app = app
  @env = env
  @start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



9
10
11
# File 'lib/breezy_pdf/intercept/base.rb', line 9

def app
  @app
end

#envObject (readonly)

Returns the value of attribute env.



9
10
11
# File 'lib/breezy_pdf/intercept/base.rb', line 9

def env
  @env
end