lib/baremetrics_api/client.rb
# The methods below are responsible for appending methods from the
# endpoint classes onto the client. This allows for simple interaction
# with the gem.
# For example: client.retrieve_account instead of
# BaremetricsAPI::Endpoint::Account.new(client).retrieve_account
The methods below are responsible for appending methods from the
endpoint classes onto the client. This allows for simple interaction
with the gem.
The methods below are responsible for appending methods from the endpoint classes onto the client . This allows for simple interaction with the gem .
def append_request_methods_to_class
      Constants::ENDPOINT_CLASSES.each do |endpoint_class|
        endpoint_instance = endpoint_class.new(self)
        create_methods_from_instance(endpoint_instance)
      end
    end
def append_request_methods_to_class Constants :: ENDPOINT_CLASSES . each do | endpoint_class | endpoint_instance = endpoint_class . new ( self ) create_methods_from_instance ( endpoint_instance ) end end
The methods below are responsible for appending methods from the
endpoint classes onto the client.
The methods below are responsible for appending methods from the endpoint classes onto the client .