Module: Tictail

Defined in:
lib/tictail/helper.rb,
lib/tictail/tictail.rb,
lib/tictail/api/card.rb,
lib/tictail/api/ping.rb,
lib/tictail/api/order.rb,
lib/tictail/api/client.rb,
lib/tictail/api/product.rb,
lib/tictail/api/version.rb,
lib/tictail/api/customer.rb,
lib/tictail/api/authenticate.rb,
lib/tictail/faraday_middleware/response_parser.rb

Defined Under Namespace

Modules: Api, Helper Classes: Client, InvalidParams, ResponseParser

Class Method Summary collapse

Class Method Details

.clientObject



5
6
7
# File 'lib/tictail/tictail.rb', line 5

def client
  @client ||= Tictail::Client.new()
end

.respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Makes sure that the method missing is checked with the Tictail::Client instance

Parameters:

  • method_name (String)

    the name of the method we want to run

  • include_private (Boolean) (defaults to: false)

    defines wether to check for private functions as well

Returns:

  • (Boolean)


14
15
16
# File 'lib/tictail/tictail.rb', line 14

def respond_to_missing?(method_name, include_private=false)
  client.respond_to?(method_name, include_private)
end