module Cuba::Tools::Api
Attributes
config[RW]
Public Instance Methods
reset_config()
click to toggle source
Resets the configuration to the default (empty hash)
# File lib/cuba/tools/api.rb, line 16 def reset_config @config = OpenStruct.new({ path: './app/api_params', user_class: 'User' }) end
setup() { |config| ... }
click to toggle source
# File lib/cuba/tools/api.rb, line 7 def setup yield config end