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



131
132
133
# File 'lib/ardb/relation_spy.rb', line 131

def args
  @args
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



131
132
133
# File 'lib/ardb/relation_spy.rb', line 131

def type
  @type
end

Instance Method Details

#to_sqlObject



132
133
134
# File 'lib/ardb/relation_spy.rb', line 132

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