Class: SmartyStreets::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRequest

Returns a new instance of Request.



5
6
7
8
9
10
11
12
13
# File 'lib/smartystreets_ruby_sdk/request.rb', line 5

def initialize
  @parameters = {}
  @payload = nil
  @url_prefix = nil
  @url_components = nil
  @referer = nil
  @header = {}
  @content_type = 'application/json'
end

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



3
4
5
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3

def content_type
  @content_type
end

#headerObject

Returns the value of attribute header.



3
4
5
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3

def header
  @header
end

#parametersObject

Returns the value of attribute parameters.



3
4
5
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3

def parameters
  @parameters
end

#payloadObject

Returns the value of attribute payload.



3
4
5
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3

def payload
  @payload
end

#refererObject

Returns the value of attribute referer.



3
4
5
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3

def referer
  @referer
end

#url_componentsObject

Returns the value of attribute url_components.



3
4
5
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3

def url_components
  @url_components
end

#url_prefixObject

Returns the value of attribute url_prefix.



3
4
5
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3

def url_prefix
  @url_prefix
end