Class: Gitlab::UsageData::Topology::CollectionFailure

Inherits:
Struct
  • Object
show all
Defined in:
lib/gitlab/usage_data/topology.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



23
24
25
# File 'lib/gitlab/usage_data/topology.rb', line 23

def error
  @error
end

#queryObject

Returns the value of attribute query

Returns:

  • (Object)

    the current value of query



23
24
25
# File 'lib/gitlab/usage_data/topology.rb', line 23

def query
  @query
end

Instance Method Details

#to_hObject



24
25
26
# File 'lib/gitlab/usage_data/topology.rb', line 24

def to_h
  { query => error }
end