Class: Gitlab::Triage::NetworkAdapters::BaseAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/triage/network_adapters/base_adapter.rb

Direct Known Subclasses

GraphqlAdapter, HttpartyAdapter, TestAdapter

Constant Summary collapse

USER_AGENT =
"GitLab Triage #{Gitlab::Triage::VERSION}".freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ BaseAdapter

Returns a new instance of BaseAdapter.



13
14
15
# File 'lib/gitlab/triage/network_adapters/base_adapter.rb', line 13

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



11
12
13
# File 'lib/gitlab/triage/network_adapters/base_adapter.rb', line 11

def options
  @options
end