class NicInfo::Factory
Creates objects we want to mock
Attributes
config[RW]
Public Class Methods
new( config )
click to toggle source
# File lib/nicinfo/factory.rb, line 22 def initialize( config ) @config = config end
Public Instance Methods
new_autnum()
click to toggle source
# File lib/nicinfo/factory.rb, line 30 def new_autnum return Autnum.new( config ) end
new_domain()
click to toggle source
# File lib/nicinfo/factory.rb, line 34 def new_domain return Domain.new( config ) end
new_entity()
click to toggle source
# File lib/nicinfo/factory.rb, line 38 def new_entity return Entity.new( config ) end
new_error_code()
click to toggle source
# File lib/nicinfo/factory.rb, line 26 def new_error_code return ErrorCode.new( config ) end
new_ip()
click to toggle source
# File lib/nicinfo/factory.rb, line 42 def new_ip return Ip.new( config ) end
new_notices()
click to toggle source
# File lib/nicinfo/factory.rb, line 46 def new_notices return Notices.new( config ) end
new_ns()
click to toggle source
# File lib/nicinfo/factory.rb, line 50 def new_ns return Ns.new( config ) end