~tim/mailchimp3

4a85279d09c7b51b252b75352aa32d0df5ea8a56 — Tim Morgan 5 years ago b32428c
Remove respond_to?
1 files changed, 0 insertions(+), 11 deletions(-)

M lib/mailchimp3/endpoint.rb
M lib/mailchimp3/endpoint.rb => lib/mailchimp3/endpoint.rb +0 -11
@@ 23,17 23,6 @@ module MailChimp3
      _build_endpoint(id.to_s)
    end

    def respond_to?(method_name)
      endpoint = _build_endpoint(method_name.to_s)
      begin
        endpoint.get
      rescue Errors::NotFound
        false
      else
        true
      end
    end

    def get(params = {})
      @last_result = _connection.get(@url, params)
      _build_response(@last_result)