Class: EmmyHttp::Client::Adapter

Inherits:
Object
  • Object
show all
Includes:
Adapter
Defined in:
lib/emmy_http/client/adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



6
7
8
# File 'lib/emmy_http/client/adapter.rb', line 6

def client
  @client
end

#operationObject

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_aObject



13
14
15
# File 'lib/emmy_http/client/adapter.rb', line 13

def to_a
  client.to_a
end