Class: Specter::Env

Inherits:
Hash
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/specter/env.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, request) ⇒ Env

Returns a new instance of Env.



13
14
15
16
# File 'lib/specter/env.rb', line 13

def initialize(client, request)
  @client  = client
  @request = request
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



7
8
9
# File 'lib/specter/env.rb', line 7

def client
  @client
end

#requestObject (readonly)

Returns the value of attribute request.



9
10
11
# File 'lib/specter/env.rb', line 9

def request
  @request
end

Instance Method Details

#to_strObject



18
19
20
# File 'lib/specter/env.rb', line 18

def to_str
  "#{to_json}\x0"
end