module Tictail
Public Class Methods
client()
click to toggle source
# File lib/tictail/tictail.rb, line 5 def client @client ||= Tictail::Client.new() end
respond_to_missing?(method_name, include_private=false)
click to toggle source
Makes sure that the method missing is checked with the Tictail::Client
instance
@param method_name [String] the name of the method we want to run @param include_private [Boolean] defines wether to check for private functions as well
# File lib/tictail/tictail.rb, line 14 def respond_to_missing?(method_name, include_private=false) client.respond_to?(method_name, include_private) end
Private Class Methods
method_missing(method_name, *args, &block)
click to toggle source
executes any function on the Tictail::Client
instance
@param args [*] any argument that we want to pass to the client function @param block [Block] any block that is passed to the client function
Calls superclass method
# File lib/tictail/tictail.rb, line 24 def method_missing(method_name, *args, &block) return super unless client.respond_to?(method_name) client.send(method_name, *args, &block) end