Sha256: a1ad78859198859af4b976dcbcfca4c68cbbe98085c6b5a0bef78770c6e149ec
Contents?: true
Size: 474 Bytes
Versions: 11
Compression:
Stored size: 474 Bytes
Contents
module SdbDal class EqualsCondition attr_accessor :attribute_description attr_accessor :value def initialize(attribute_description,value) self.attribute_description=attribute_description self.value=value end def matches?(domain_object) return domain_object[attribute_description.name]==value end def to_sdb_query return "'#{self.attribute_description.name}'='#{self.attribute_description.format_for_sdb(self.value)}'" end end end
Version data entries
11 entries across 11 versions & 1 rubygems