Sha256: 04224058a4d476be46024445bbb2f0eedb5fc0694d02710409ab9969cfa83cd9

Contents?: true

Size: 479 Bytes

Versions: 9

Compression:

Stored size: 479 Bytes

Contents

module NotRelational
 

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_model)
       return domain_model[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

9 entries across 9 versions & 1 rubygems

Version Path
cloudwow-not_relational-0.1.0 lib/not_relational/equals_condition.rb
cloudwow-not_relational-0.1.11 lib/not_relational/equals_condition.rb
cloudwow-not_relational-0.1.2 lib/not_relational/equals_condition.rb
cloudwow-not_relational-0.1.3 lib/not_relational/equals_condition.rb
cloudwow-not_relational-0.1.5 lib/not_relational/equals_condition.rb
cloudwow-not_relational-0.1.6 lib/not_relational/equals_condition.rb
cloudwow-not_relational-0.1.7 lib/not_relational/equals_condition.rb
cloudwow-not_relational-0.1.8 lib/not_relational/equals_condition.rb
cloudwow-not_relational-0.1.9 lib/not_relational/equals_condition.rb