Class: SmartyStreets::Request
- Inherits:
-
Object
- Object
- SmartyStreets::Request
- Defined in:
- lib/smartystreets_ruby_sdk/request.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#header ⇒ Object
Returns the value of attribute header.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#referer ⇒ Object
Returns the value of attribute referer.
-
#url_components ⇒ Object
Returns the value of attribute url_components.
-
#url_prefix ⇒ Object
Returns the value of attribute url_prefix.
Instance Method Summary collapse
-
#initialize ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize ⇒ Request
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_type ⇒ Object
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 |
#header ⇒ Object
Returns the value of attribute header.
3 4 5 |
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3 def header @header end |
#parameters ⇒ Object
Returns the value of attribute parameters.
3 4 5 |
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3 def parameters @parameters end |
#payload ⇒ Object
Returns the value of attribute payload.
3 4 5 |
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3 def payload @payload end |
#referer ⇒ Object
Returns the value of attribute referer.
3 4 5 |
# File 'lib/smartystreets_ruby_sdk/request.rb', line 3 def referer @referer end |
#url_components ⇒ Object
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_prefix ⇒ Object
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 |