Sha256: 91d0ab8dcc64b307fc144f64e2d230d0a42374b155ee1113a4743ada03e2768d

Contents?: true

Size: 721 Bytes

Versions: 4

Compression:

Stored size: 721 Bytes

Contents


#
# TODO STEPH Should have been generated--- but not yet
#
module Killbill
  module Plugin
    module Model

      class DateTimeZone

        @@admissible_values  = [:UTC]
        attr_reader :enum

        def initialize(value)
          raise ArgumentError.new("Enum DateTimeZone does not have such value : #{value}") if ! DateTimeZone.is_admissible_value?(value)
          @enum = value
        end

        def ==(other)
          return false if other.nil?
          self.enum == other.enum
        end

        def self.is_admissible_value?(value)
          @@admissible_values.include?(value)
        end

        def self.admissible_values
          @@admissible_values
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
killbill-1.0.19 lib/killbill/gen/date_time_zone.rb
killbill-1.0.18 lib/killbill/gen/date_time_zone.rb
killbill-1.0.17 lib/killbill/gen/date_time_zone.rb
killbill-1.0.16 lib/killbill/gen/date_time_zone.rb