Class: Jetson::Console::Context

Inherits:
Object
  • Object
show all
Includes:
DSL
Defined in:
lib/jetson/console.rb

Instance Method Summary collapse

Methods included from DSL

#clear, #request, #request!, #session, #set

Constructor Details

#initialize(host, *args) ⇒ Context

Returns a new instance of Context.



10
11
12
13
14
15
# File 'lib/jetson/console.rb', line 10

def initialize(host, *args)
  @host    = normalize_host(host)
  @verbose = true
  @cookies = {}
  @headers = {}
end

Instance Method Details

#helpObject



17
18
19
# File 'lib/jetson/console.rb', line 17

def help
  
end

#to_sObject



21
22
23
# File 'lib/jetson/console.rb', line 21

def to_s
  @host.sub(/\Ahttps?:\/\//, '')
end