Sha256: 811c874500b4bcbac799b2bb3b0239a2c786e11f7a7c5fc2cad1d5443d1947c3
Contents?: true
Size: 694 Bytes
Versions: 20
Compression:
Stored size: 694 Bytes
Contents
module GreenButtonData class UsagePoint < Entry include Enumerations attr_accessor :service_category def initialize(attributes) super # If deprecated usage summary name is used, create an alias if self.class.instance_methods.grep(/electric_power_usage/).size > 0 warn "DEPRECATED: ElectricPowerUsageSummary has been renamed to UsageSummary" singleton_class.class_eval do alias_method :usage_summaries, :electric_power_usage_summaries end end end def service_category SERVICE[@kind] end def usage_summary_url return @usage_summary_url || @electric_power_usage_summary_url end end end
Version data entries
20 entries across 20 versions & 1 rubygems