Class: NPlusInsight::Detection

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at

Returns:

  • (Object)

    the current value of created_at



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def created_at
  @created_at
end

#edgesObject

Returns the value of attribute edges

Returns:

  • (Object)

    the current value of edges



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def edges
  @edges
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def id
  @id
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def location
  @location
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def method
  @method
end

#modelsObject

Returns the value of attribute models

Returns:

  • (Object)

    the current value of models



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def models
  @models
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def path
  @path
end

#query_countObject

Returns the value of attribute query_count

Returns:

  • (Object)

    the current value of query_count



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def query_count
  @query_count
end

#query_groupsObject

Returns the value of attribute query_groups

Returns:

  • (Object)

    the current value of query_groups



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def query_groups
  @query_groups
end

#request_idObject

Returns the value of attribute request_id

Returns:

  • (Object)

    the current value of request_id



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def request_id
  @request_id
end

#sqlObject

Returns the value of attribute sql

Returns:

  • (Object)

    the current value of sql



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def sql
  @sql
end

#suggestionsObject

Returns the value of attribute suggestions

Returns:

  • (Object)

    the current value of suggestions



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def suggestions
  @suggestions
end

#total_msObject

Returns the value of attribute total_ms

Returns:

  • (Object)

    the current value of total_ms



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def total_ms
  @total_ms
end

#treeObject

Returns the value of attribute tree

Returns:

  • (Object)

    the current value of tree



2
3
4
# File 'lib/n_plus_insight/detection.rb', line 2

def tree
  @tree
end

Instance Method Details

#as_jsonObject



7
8
9
# File 'lib/n_plus_insight/detection.rb', line 7

def as_json(*)
  members.to_h { |member| [member, public_send(member)] }
end