Module: BranchIO

Defined in:
lib/branch_io.rb,
lib/branch_io/client.rb,
lib/branch_io/version.rb,
lib/branch_io/client/links.rb,
lib/branch_io/client/response.rb,
lib/branch_io/link_properties.rb

Defined Under Namespace

Classes: Client, LinkProperties

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.method_missing(name, *args, &block) ⇒ Object

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



8
9
10
11
12
13
14
15
# File 'lib/branch_io.rb', line 8

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

.respond_to?(name) ⇒ Boolean

Returns:

  • (Boolean)


17
18
19
20
21
22
23
# File 'lib/branch_io.rb', line 17

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