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



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

def cached
  @cached
end

#duration_msObject

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



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

def duration_ms
  @duration_ms
end

#sqlObject

Returns the value of attribute sql

Returns:

  • (Object)

    the current value of sql



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

def sql
  @sql
end

#stacktraceObject

Returns the value of attribute stacktrace

Returns:

  • (Object)

    the current value of stacktrace



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

def stacktrace
  @stacktrace
end

#uidObject

Returns the value of attribute uid

Returns:

  • (Object)

    the current value of uid



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

def uid
  @uid
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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