Class: Rack::Dedos::Executables::Geoipget::Maxmind
- Inherits:
-
Object
- Object
- Rack::Dedos::Executables::Geoipget::Maxmind
- Defined in:
- lib/rack/dedos/executables/geoipget.rb
Constant Summary collapse
- REPO =
"maxmind/geoipupdate"
Instance Attribute Summary collapse
-
#arch ⇒ Object
readonly
Returns the value of attribute arch.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
Instance Method Summary collapse
- #get ⇒ Object
-
#initialize(config, dir, arch) ⇒ Maxmind
constructor
A new instance of Maxmind.
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
#arch ⇒ Object (readonly)
Returns the value of attribute arch.
48 49 50 |
# File 'lib/rack/dedos/executables/geoipget.rb', line 48 def arch @arch end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
48 49 50 |
# File 'lib/rack/dedos/executables/geoipget.rb', line 48 def config @config end |
#dir ⇒ Object (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
#get ⇒ Object
54 55 56 |
# File 'lib/rack/dedos/executables/geoipget.rb', line 54 def get prepare(latest_version) { download } end |