Class: HelperModule::SimpleHttpContent

Inherits:
Object
  • Object
show all
Defined in:
lib/helpers/simple_http_helper.rb

Direct Known Subclasses

RichBodyContent, RichUrlContent

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ SimpleHttpContent

Returns a new instance of SimpleHttpContent.



108
109
110
111
# File 'lib/helpers/simple_http_helper.rb', line 108

def initialize(uri)
  @uri = uri
  @headers = {}
end

Instance Method Details

#add_headers(params = {}) ⇒ Object



125
126
127
# File 'lib/helpers/simple_http_helper.rb', line 125

def add_headers(params = {})
  @headers = params
end

#add_parameters(params = {}) ⇒ Object

Raises:

  • (NotImplementedError)


117
118
119
# File 'lib/helpers/simple_http_helper.rb', line 117

def add_parameters(params = {})
  raise NotImplementedError
end

#get_requestObject

Raises:

  • (NotImplementedError)


113
114
115
# File 'lib/helpers/simple_http_helper.rb', line 113

def get_request
  raise NotImplementedError
end

#get_request_klassObject

Raises:

  • (NotImplementedError)


121
122
123
# File 'lib/helpers/simple_http_helper.rb', line 121

def get_request_klass
  raise NotImplementedError
end