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.



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

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

Instance Attribute Details

#archObject (readonly)

Returns the value of attribute arch.



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

def arch
  @arch
end

#configObject (readonly)

Returns the value of attribute config.



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

def config
  @config
end

#dirObject (readonly)

Returns the value of attribute dir.



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

def dir
  @dir
end

Instance Method Details

#getObject



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

def get
  prepare(latest_version) { download }
end