class DataAnon::Strategy::Field::GeojsonBase
Public Class Methods
Source
# File lib/strategy/field/contact/geojson_base.rb, line 14 def initialize file_path raise "Load and set the @values member variable in constructor" end
Source
# File lib/strategy/field/contact/geojson_base.rb, line 10 def self.region_UK self.new DataAnon::Utils::Resource.file('UK_addresses.geojson') end
Source
# File lib/strategy/field/contact/geojson_base.rb, line 6 def self.region_US self.new DataAnon::Utils::Resource.file('US_addresses.geojson') end
Public Instance Methods
Source
# File lib/strategy/field/contact/geojson_base.rb, line 18 def anonymize field @values.sample end