Class: GdnsdIo::FilePath

Inherits:
Object
  • Object
show all
Defined in:
lib/gdnsd_io/file_path.rb

Constant Summary collapse

DEFAULTS =
{
	filepath: ""
}

Instance Method Summary collapse

Constructor Details

#initialize(filepath = {}) ⇒ FilePath

Returns a new instance of FilePath.



11
12
13
14
15
# File 'lib/gdnsd_io/file_path.rb', line 11

def initialize(filepath = {})
	DEFAULTS.each do |attribute, value|
		send("#{attribute}=".to_sym, filepath.fetch(attribute, value))
	end 
end