Sha256: 5995f92399d76da02dd0129df4a05b562710a3d6000b2c0c90292ba677b0486a
Contents?: true
Size: 753 Bytes
Versions: 4
Compression:
Stored size: 753 Bytes
Contents
# # Ruby classes automatically generated from java classes-- don't edit # module Killbill module Plugin module Model class Currency @@admissible_values = [:GBP, :MXN, :BRL, :EUR, :AUD, :USD] attr_reader :enum def initialize(value) raise ArgumentError.new("Enum Currency does not have such value : #{value}") if ! Currency.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/currency.rb |
killbill-1.0.18 | lib/killbill/gen/currency.rb |
killbill-1.0.17 | lib/killbill/gen/currency.rb |
killbill-1.0.16 | lib/killbill/gen/currency.rb |