Class: Hoodoo::Client::Endpoint::HTTPBased::DataForRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/hoodoo/client/endpoint/endpoints/http_based.rb

Overview

Description of data that will be used for request - essentially a compilation of a DescriptionOfRequest instance produced via a call to #get_data_for_request.

Instance Attribute Summary collapse

Instance Attribute Details

#body_stringObject

String of compiled body data for all actions (may be empty).



108
109
110
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 108

def body_string
  @body_string
end

#full_uriObject

The full HTTP URI (or equivalent HTTP URI for HTTP-like, but non-HTTP systems like AMQP) for the call, including any resource identifier and query data.



104
105
106
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 104

def full_uri
  @full_uri
end

#header_hashObject

Hash of headers; keys are HTTP header names as a Strings (e.g. “Content-Type”, “X-Interaction-ID”), values are header values as Strings.



114
115
116
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 114

def header_hash
  @header_hash
end

#query_hashObject

Hash of query; keys are query keys as Strings (e.g. “search”), values are query values as URL encoded Strings. (e.g. “outlet_id%3Dd32a0e15754a486989fdde2b0830fe12”)



120
121
122
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 120

def query_hash
  @query_hash
end