Class: EmmyHttp::Request

Inherits:
Object
  • Object
show all
Includes:
ModelPack::Document
Defined in:
lib/emmy_http/request.rb

Instance Method Summary collapse

Instance Method Details

#operationObject Also known as: op



35
36
37
# File 'lib/emmy_http/request.rb', line 35

def operation
  @operation ||= EmmyHttp::Operation.new(self, adapter.new)
end

#ssl?Boolean

FIXME: move to model_pack

Returns:

  • (Boolean)


53
54
55
# File 'lib/emmy_http/request.rb', line 53

def ssl?
  !!ssl
end

#syncObject



41
42
43
# File 'lib/emmy_http/request.rb', line 41

def sync
  operation.sync
end