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



148
149
150
# File 'lib/ardb/relation_spy.rb', line 148

def args
  @args
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



148
149
150
# File 'lib/ardb/relation_spy.rb', line 148

def type
  @type
end

Instance Method Details

#to_sqlObject



149
150
151
# File 'lib/ardb/relation_spy.rb', line 149

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