Module: Venmo::Config

Included in:
Venmo
Defined in:
lib/venmo/config.rb

Constant Summary collapse

VALID_OPTIONS_KEYS =
[
  :access_token,

  #will default to private if not set
  :privacy
].freeze

Instance Method Summary collapse

Instance Method Details

#optionsObject

Create a hash of options and their values



15
16
17
18
19
# File 'lib/venmo/config.rb', line 15

def options
  VALID_OPTIONS_KEYS.inject({}) do |option, key|
    option.merge!(key => send(key))
  end
end