class SparkApi::Models::Constraint
Constants
- ATTRIBUTES
Public Class Methods
new(args)
click to toggle source
# File lib/spark_api/models/constraint.rb, line 6 def initialize(args) ATTRIBUTES.each { |f| send("#{f}=", args[f]) if args.include?(f) || args.include?(f.to_sym) } end
Public Instance Methods
to_s()
click to toggle source
# File lib/spark_api/models/constraint.rb, line 10 def to_s "#{self.RuleName}: Field(#{self.RuleField},#{self.RuleFieldValue}) Value(#{self.RuleValue},#{self.Value})" end