module Ribbon::Intercom

Constants

VERSION

Private Instance Methods

client() click to toggle source
# File lib/ribbon/intercom.rb, line 27
def client
  @_client ||= Client.new
end
load_tasks() click to toggle source
# File lib/ribbon/intercom.rb, line 17
def load_tasks
  Dir[
    File.expand_path("../../tasks", __FILE__) + '/**.rake'
  ].each { |rake_file| load rake_file }
end
method_missing(meth, *args, &block) click to toggle source
# File lib/ribbon/intercom.rb, line 23
def method_missing(meth, *args, &block)
  client.send(meth, *args, &block)
end
mock_safe() { || ... } click to toggle source
# File lib/ribbon/intercom.rb, line 31
def mock_safe
  orig_client = client
  @_client = @_client.mock_safe
  yield
ensure
  @_client = orig_client
end