Class: Furia::Query

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#cachedObject

Returns the value of attribute cached

Returns:

  • (Object)

    the current value of cached



13
14
15
# File 'lib/furia.rb', line 13

def cached
  @cached
end

#duration_msObject

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



13
14
15
# File 'lib/furia.rb', line 13

def duration_ms
  @duration_ms
end

#sqlObject

Returns the value of attribute sql

Returns:

  • (Object)

    the current value of sql



13
14
15
# File 'lib/furia.rb', line 13

def sql
  @sql
end

#stacktraceObject

Returns the value of attribute stacktrace

Returns:

  • (Object)

    the current value of stacktrace



13
14
15
# File 'lib/furia.rb', line 13

def stacktrace
  @stacktrace
end

#uidObject

Returns the value of attribute uid

Returns:

  • (Object)

    the current value of uid



13
14
15
# File 'lib/furia.rb', line 13

def uid
  @uid
end

Class Method Details

.from_hash(hash) ⇒ Object



15
16
17
# File 'lib/furia.rb', line 15

def self.from_hash(hash)
  new(**hash.slice(*members))
end