Sha256: 9b93e50a594139845f428db08b910f29dfd90f1edf424b1fc64eb85d96df359c

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

# frozen_string_literal: true

module TermiiRuby
  #
  # @author Collins
  # A class to enforce the request methods
  # @abstract
  #
  class AbstractClient
    #
    # Ensure the subclass implements the make_get_request method
    #
    # @return [Object] NotImplementedError
    #
    def make_get_request
      raise NotImplementedError, "Subclasses must implement the make_get_request method"
    end

    #
    # Ensure the subclass implements the make_post_request method
    #
    # @return [Object] NotImplementedError
    #
    def make_post_request
      raise NotImplementedError, "Subclasses must implement the make_post_request method"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
termii_ruby-0.1.1 lib/termii_ruby/abstract_client.rb