Class: Ardb::RelationSpy::AppliedExpression

Inherits:
Struct
  • Object
show all
Defined in:
lib/ardb/relation_spy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



137
138
139
# File 'lib/ardb/relation_spy.rb', line 137

def args
  @args
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



137
138
139
# File 'lib/ardb/relation_spy.rb', line 137

def type
  @type
end

Instance Method Details

#to_sqlObject



138
139
140
# File 'lib/ardb/relation_spy.rb', line 138

def to_sql
  "#{self.type}: #{self.args.inspect}"
end