Module: Venmo
- Extended by:
- Config, Pay
- Defined in:
- lib/venmo.rb,
lib/venmo/pay.rb,
lib/venmo/config.rb,
lib/venmo/sender.rb
Defined Under Namespace
Modules: Config, Pay, Sender
Constant Summary
Constants included
from Config
Config::VALID_OPTIONS_KEYS
Class Method Summary
collapse
Methods included from Config
options
Methods included from Pay
pay_by_email, pay_by_phone_number, pay_by_user_id
Class Method Details
9
10
11
|
# File 'lib/venmo.rb', line 9
def self.configure
yield self
end
|
.method_missing(method, *args, &block) ⇒ Object
21
22
23
24
|
# File 'lib/venmo.rb', line 21
def self.method_missing(method, *args, &block)
return super unless sender.respond_to?(method)
sender.send(method, *args, &block)
end
|
.respond_to?(method) ⇒ Boolean
26
27
28
|
# File 'lib/venmo.rb', line 26
def self.respond_to?(method)
return sender.respond_to?(method) || super
end
|
.sender(options = {}) ⇒ Object
13
14
15
|
# File 'lib/venmo.rb', line 13
def self.sender(options={})
Venmo::Sender.new(options)
end
|