Class: IletiMerkezi::Request
- Inherits:
-
Object
- Object
- IletiMerkezi::Request
- Includes:
- XmlBuilder
- Defined in:
- lib/ileti_merkezi/utils/request.rb
Overview
Request :reek:TooManyInstanceVariables { max_instance_variables: 6 }
Constant Summary
Constants included from XmlBuilder
Instance Attribute Summary collapse
-
#uri ⇒ Object
writeonly
:reek:Attribute.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(body: nil, payload: '', path: '') ⇒ Request
constructor
A new instance of Request.
Methods included from XmlBuilder
Constructor Details
#initialize(body: nil, payload: '', path: '') ⇒ Request
Returns a new instance of Request.
27 28 29 30 31 32 33 |
# File 'lib/ileti_merkezi/utils/request.rb', line 27 def initialize(body: nil, payload: '', path: '') @config = IletiMerkezi.configuration @payload = payload @path = path @body = body @uri = URI.parse(@config.endpoint + @path) end |
Instance Attribute Details
#uri=(value) ⇒ Object
:reek:Attribute
25 26 27 |
# File 'lib/ileti_merkezi/utils/request.rb', line 25 def uri=(value) @uri = value end |