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).



134
135
136
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 134

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.



130
131
132
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 130

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.



140
141
142
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 140

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”)



146
147
148
# File 'lib/hoodoo/client/endpoint/endpoints/http_based.rb', line 146

def query_hash
  @query_hash
end