Class: Remitmd::MockTransport

Inherits:
Object
  • Object
show all
Defined in:
lib/remitmd/mock.rb

Overview

─── Internal: MockTransport ───────────────────────────────────────────────

Instance Method Summary collapse

Constructor Details

#initialize(state, mutex) ⇒ MockTransport

Returns a new instance of MockTransport.



120
121
122
123
# File 'lib/remitmd/mock.rb', line 120

def initialize(state, mutex)
  @state = state
  @mutex = mutex
end

Instance Method Details

#delete(path) ⇒ Object



137
138
139
# File 'lib/remitmd/mock.rb', line 137

def delete(path)
  dispatch("DELETE", path, nil)
end

#get(path) ⇒ Object



125
126
127
# File 'lib/remitmd/mock.rb', line 125

def get(path)
  dispatch("GET", path, nil)
end

#patch(path, body = nil) ⇒ Object



133
134
135
# File 'lib/remitmd/mock.rb', line 133

def patch(path, body = nil)
  dispatch("PATCH", path, body)
end

#post(path, body = nil) ⇒ Object



129
130
131
# File 'lib/remitmd/mock.rb', line 129

def post(path, body = nil)
  dispatch("POST", path, body)
end