Class: Demux::NullTransmissionReceipt

Inherits:
Object
  • Object
show all
Defined in:
lib/demux/transmitter.rb

Overview

Null object to represent having no receipt

Instance Method Summary collapse

Instance Method Details

#http_codeObject


71
72
73
# File 'lib/demux/transmitter.rb', line 71

def http_code
  nil
end

#request_bodyObject


79
80
81
# File 'lib/demux/transmitter.rb', line 79

def request_body
  ""
end

#request_headersObject


75
76
77
# File 'lib/demux/transmitter.rb', line 75

def request_headers
  {}
end

#response_bodyObject


83
84
85
# File 'lib/demux/transmitter.rb', line 83

def response_body
  ""
end

#success?Boolean

Returns:

  • (Boolean)

67
68
69
# File 'lib/demux/transmitter.rb', line 67

def success?
  nil
end