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.



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

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/gitlab/triage/network_adapters/base_adapter.rb', line 9

def options
  @options
end