Class: HTTP::Session::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/http/session/context.rb,
lib/http/session/context/follow_context.rb

Defined Under Namespace

Classes: FollowContext

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Context

Returns a new instance of Context.

Parameters:

  • options (Hash)

Options Hash (options):



9
10
11
# File 'lib/http/session/context.rb', line 9

def initialize(options)
  @follow = options[:follow]
end

Instance Attribute Details

#followObject (readonly)

Returns the value of attribute follow.



5
6
7
# File 'lib/http/session/context.rb', line 5

def follow
  @follow
end