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.1.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



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

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)


19
20
21
22
23
24
25
# File 'lib/branch_io.rb', line 19

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