Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.06 KB

RemoteResponse.md

File metadata and controls

30 lines (24 loc) · 1.06 KB

MergeAccountingClient::RemoteResponse

Properties

Name Type Description Notes
method String
path String
status Integer
response AnyType
response_headers Hash<String, AnyType> [optional]
response_type ResponseTypeEnum [optional]
headers Hash<String, AnyType> [optional]

Example

require 'merge_accounting_client'

instance = MergeAccountingClient::RemoteResponse.new(
  method: GET,
  path: /scooters,
  status: 200,
  response: {&quot;scooters&quot;:[{&quot;company&quot;:&quot;Lime&quot;,&quot;model&quot;:&quot;Gen 2.5&quot;},{&quot;company&quot;:&quot;Bird&quot;,&quot;model&quot;:&quot;Bird Zero&quot;}]},
  response_headers: {&quot;X-Page-Token&quot;:&quot;value&quot;},
  response_type: JSON,
  headers: {&quot;EXTRA-HEADER&quot;:&quot;value&quot;,&quot;Authorization&quot;:&quot;&lt;redacted&gt;&quot;}
)