class Mongodump::DB::Base
Attributes
appname[RW]
hostname[RW]
password[RW]
port[RW]
protocol[RW]
uri[RW]
username[RW]
Public Class Methods
new(arg)
click to toggle source
# File lib/mongodump/db/base.rb, line 12 def initialize(arg) if arg.is_a?(String) @uri = arg parse else raise IncompatibleArgumentException end end
Public Instance Methods
has_all_attributes?()
click to toggle source
# File lib/mongodump/db/base.rb, line 21 def has_all_attributes? for variable in [@uri, @protocol, @username, @password, @hostname, @port, @appname] if variable.blank? return false end end end