def get(params = nil)
      query = if params && params.is_a?(String)
                params
              elsif params && params.is_a?(Hash)
                params.map { |k, v| "#{k}=#{URI.encode(v)}" }.join('&')
              end

      args = self.configuration.merge(:query => query)
      http_resp = Restfolia::HTTP::Request.do_request(:get, self.url, args)
      Restfolia::HTTP.response_by_status_code(http_resp)
    end
def get(params = nil)
      query = if params && params.is_a?(String)
                params
              elsif params && params.is_a?(Hash)
                params.map { |k, v| "#{k}=#{URI.encode(v)}" }.join('&')
              end

      args = self.configuration.merge(:query => query)
      http_resp = Restfolia::HTTP::Request.do_request(:get, self.url, args)
      Restfolia::HTTP.response_by_status_code(http_resp)
    end
Public: Creates an EntryPoint.

 url - A String address of some API service.
 rel - An optional String that represents the relation of EntryPoint.
 Public: Get the Resource from this EntryPoint's url.

 params - an optional query String or Hash object. String parameter
 is passed direct as query. Hash object, before mounting query,
 URI.encode is used on values.

 Examples

   # GET on http://service.com/search
   resource = Restfolia.at("http://service.com/search").get

   # GET on http://service.com/search?q=test
   resource = Restfolia.at("http://service.com/search").get(:q => "test")
   # or if you want to control your query, you can send a String
   resource = Restfolia.at("http://service.com/search").get("q=test")

 Returns depends on http code from response. For each "range"
 (ex. 2xx, 3xx ... etc) you can have a different return value.
 For 2xx range, you can expect an instance of Restfolia::Resource.
 You can see Restfolia::HttpBehaviour for more details.

 Raises Restfolia::ResponseError for unexpected conditions. See
 Restfolia::HTTP::Behaviour methods for more details.
 Raises URI::InvalidURIError if url attribute is invalid.