Sha256: 647a59cc08174082246026ab7f643bbc4e9f2c5732f633a4c81933b5fcaa3d6f
Contents?: true
Size: 868 Bytes
Versions: 3
Compression:
Stored size: 868 Bytes
Contents
module OldBill module V2 class CrimeByMonth < Hashie::Trash def self.property(property_name, options = {}) if options[:from] && options[:from] =~ /-/ translations << options[:from].to_sym define_method "#{options[:from]}=" do |val| self[:"#{property_name}"] = val end options.delete(:from) super(property_name, options) else super end end property :month property :robbery property :burglary property :anti_social_behaviour, :from => "anti-social-behaviour" property :other_crime, :from => "other-crime" property :all_crime, :from => "all-crime" property :vehicle_crime, :from => "vehicle-crime" property :violent_crime, :from => "violent-crime" property :session end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oldbill-0.0.3 | lib/oldbill/v2/crime_by_month.rb |
oldbill-0.0.2 | lib/oldbill/v2/crime_by_month.rb |
oldbill-0.0.1 | lib/oldbill/v2/crime_by_month.rb |