Sha256: 507d689599cd4d713fd7e8cd23dd9b60c3d4ce7ca0555c40da81b8d805e7ecbf

Contents?: true

Size: 295 Bytes

Versions: 1

Compression:

Stored size: 295 Bytes

Contents

class Spotlight
  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

1 entries across 1 versions & 1 rubygems

Version Path
attack-spotlight-0.1.0 lib/spotlight/country.rb