Class: Vzaar::Request::Url

Inherits:
Struct
  • Object
show all
Includes:
Helper
Defined in:
lib/vzaar/request/url.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper

#blank?, #hash_to_xml, #symb_keys

Instance Attribute Details

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



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

def format
  @format
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



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

def params
  @params
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



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

def url
  @url
end

Instance Method Details

#buildObject



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