lib/bubbles/endpoint.rb in bubbles-rest-client-0.4.1 vs lib/bubbles/endpoint.rb in bubbles-rest-client-0.5.0

- old
+ new

@@ -144,17 +144,14 @@ ## # Retrieve the URL to access this +Endpoint+, as a +String+ with all parameters expanded. # # @param [RestEnvironment] env The +RestEnvironment+ to use to access this +Endpoint+. # - # @return [String] A +String+ containing the full URL to access this +Endpoint+ on the given {RestEnvironment}. + # @return [Addressable::URI] An +Addressable::URI+ containing the full URL to access this +Endpoint+ on the given + # +RestEnvironment+. # def get_expanded_url(env, uri_params = {}) - unless uri_params - uri_params = {} - end - url = get_base_url env if is_complex? special_url_string = '{scheme}://{host}/' unless @port == 80 || @port == 443 @@ -238,10 +235,10 @@ # # @return [Boolean] true, if this {Endpoint} has a method name that is different than the +location+ name specified # for the +Endpoint+, to be defined on {RestClientResources}; false, otherwise. # def name? - @name == nil + @name != nil end ## # Whether or not an Authorization header should be Base64-encoded. # \ No newline at end of file