Class: Specter::Env
- Inherits:
-
Hash
- Object
- Hash
- Specter::Env
- Extended by:
- Forwardable
- Defined in:
- lib/specter/env.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(client, request) ⇒ Env
constructor
A new instance of Env.
- #to_str ⇒ Object
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
#client ⇒ Object (readonly)
Returns the value of attribute client.
7 8 9 |
# File 'lib/specter/env.rb', line 7 def client @client end |
#request ⇒ Object (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_str ⇒ Object
18 19 20 |
# File 'lib/specter/env.rb', line 18 def to_str "#{to_json}\x0" end |