Sha256: 19e925f91912627c473ce4073f8f5baa06f6eebb790cee11079269da011f6639

Contents?: true

Size: 291 Bytes

Versions: 5

Compression:

Stored size: 291 Bytes

Contents

class Focus
  class Country < Data

    def name
      begin
        return @data['Hostip']['countryName']
      rescue
        return nil
      end
    end

    def code
      begin
        return @data['Hostip']['countryAbbrev']
      rescue
        return nil
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
attack-focus-0.1.0 lib/focus/country.rb
attack-focus-0.2.0 lib/focus/country.rb
focus-0.1.0 lib/focus/country.rb
focus-0.2.0 lib/focus/country.rb
focus-0.2.1 lib/focus/country.rb