Class: EmmyHttp::Client::Adapter
- Inherits:
-
Object
- Object
- EmmyHttp::Client::Adapter
- Includes:
- Adapter
- Defined in:
- lib/emmy_http/client/adapter.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
-
#operation ⇒ Object
Returns the value of attribute operation.
Instance Method Summary collapse
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
6 7 8 |
# File 'lib/emmy_http/client/adapter.rb', line 6 def client @client end |
#operation ⇒ Object
Returns the value of attribute operation.
5 6 7 |
# File 'lib/emmy_http/client/adapter.rb', line 5 def operation @operation end |
Instance Method Details
#delegate=(operation) ⇒ Object
8 9 10 11 |
# File 'lib/emmy_http/client/adapter.rb', line 8 def delegate=(operation) @operation = operation @client = Client::Client.new(operation.request, self) end |
#to_a ⇒ Object
13 14 15 |
# File 'lib/emmy_http/client/adapter.rb', line 13 def to_a client.to_a end |