module RandomUserGenerator::Configuration
Constants
- OPTIONS
Attributes
api_version[RW]
Public Instance Methods
configure() { |self| ... }
click to toggle source
# File lib/random_user_generator/configuration.rb, line 8 def configure yield self end
options()
click to toggle source
# File lib/random_user_generator/configuration.rb, line 12 def options OPTIONS.inject({}) do |option, key| option.merge!(key => send(key)) end end
reset()
click to toggle source
# File lib/random_user_generator/configuration.rb, line 18 def reset self.api_version = nil self.key = nil self.nat = nil self.gender = nil self.seed = nil end