Class: Api2cart::RequestUrlComposer
- Inherits:
-
Struct
- Object
- Struct
- Api2cart::RequestUrlComposer
- Defined in:
- lib/api2cart/request_url_composer.rb
Constant Summary collapse
- HOST =
'api.api2cart.com'- PATH_BASE =
'/v1.0'
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#query_params ⇒ Object
Returns the value of attribute query_params.
-
#store_key ⇒ Object
Returns the value of attribute store_key.
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key
5 6 7 |
# File 'lib/api2cart/request_url_composer.rb', line 5 def api_key @api_key end |
#method_name ⇒ Object
Returns the value of attribute method_name
5 6 7 |
# File 'lib/api2cart/request_url_composer.rb', line 5 def method_name @method_name end |
#query_params ⇒ Object
Returns the value of attribute query_params
5 6 7 |
# File 'lib/api2cart/request_url_composer.rb', line 5 def query_params @query_params end |
#store_key ⇒ Object
Returns the value of attribute store_key
5 6 7 |
# File 'lib/api2cart/request_url_composer.rb', line 5 def store_key @store_key end |
Instance Method Details
#compose_request_url ⇒ Object
9 10 11 |
# File 'lib/api2cart/request_url_composer.rb', line 9 def compose_request_url URI::HTTP.build host: HOST, path: full_path, query: query_string end |