Class: Rack::Dedos::Executables::Geoipget::Maxmind

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/dedos/executables/geoipget.rb

Constant Summary collapse

REPO =
"maxmind/geoipupdate"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config, dir, arch) ⇒ Maxmind

Returns a new instance of Maxmind.



50
51
52
# File 'lib/rack/dedos/executables/geoipget.rb', line 50

def initialize(config, dir, arch)
  @config, @dir, @arch = config, dir, arch
end

Instance Attribute Details

#archObject (readonly)

Returns the value of attribute arch.



48
49
50
# File 'lib/rack/dedos/executables/geoipget.rb', line 48

def arch
  @arch
end

#configObject (readonly)

Returns the value of attribute config.



48
49
50
# File 'lib/rack/dedos/executables/geoipget.rb', line 48

def config
  @config
end

#dirObject (readonly)

Returns the value of attribute dir.



48
49
50
# File 'lib/rack/dedos/executables/geoipget.rb', line 48

def dir
  @dir
end

Instance Method Details

#getObject



54
55
56
# File 'lib/rack/dedos/executables/geoipget.rb', line 54

def get
  prepare(latest_version) { download }
end