Class: Vzaar::Request::Url
- Inherits:
-
Struct
- Object
- Struct
- Vzaar::Request::Url
- Includes:
- Helper
- Defined in:
- lib/vzaar/request/url.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#params ⇒ Object
Returns the value of attribute params.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Methods included from Helper
#blank?, #hash_to_xml, #symb_keys
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format
3 4 5 |
# File 'lib/vzaar/request/url.rb', line 3 def format @format end |
#params ⇒ Object
Returns the value of attribute params
3 4 5 |
# File 'lib/vzaar/request/url.rb', line 3 def params @params end |
#url ⇒ Object
Returns the value of attribute url
3 4 5 |
# File 'lib/vzaar/request/url.rb', line 3 def url @url end |
Instance Method Details
#build ⇒ Object
6 7 8 9 |
# File 'lib/vzaar/request/url.rb', line 6 def build _params = build_params blank?(_params) ? base_url : (base_url + "?" + _params) end |