Sha256: d968e5d6d2a3af381a8d30bd84340d04332a5406533631cb2957187454936952

Contents?: true

Size: 606 Bytes

Versions: 1

Compression:

Stored size: 606 Bytes

Contents

require "branch_io/version"

module BranchIO

  autoload :Client, "branch_io/client"
  autoload :LinkProperties, "branch_io/link_properties"

  # Default client helper methods: delegate unknown calls to a new Client instance w/ default constructor params

  def self.method_missing(name, *args, &block)
    default_client = Client.new
    if default_client.respond_to?(name)
      default_client.send(name, *args, &block)
    else
      super
    end
  end

  def self.respond_to?(name)
    default_client = Client.new
    if default_client.respond_to?(name)
      return true
    end
    super
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
branch_io-0.1.0 lib/branch_io.rb