Method: HaveAPI::Authentication::Base.auth_method

Defined in:
lib/haveapi/authentication/base.rb

.auth_method(v = nil) ⇒ Symbol

Get or set auth method name

Parameters:

  • v (Symbol, nil) (defaults to: nil)

Returns:

  • (Symbol)


8
9
10
11
12
13
14
# File 'lib/haveapi/authentication/base.rb', line 8

def self.auth_method(v = nil)
  if v
    @auth_method = v
  else
    @auth_method || name.split('::').last.underscore.to_sym
  end
end