Class: Authentication::Basic

Inherits:
Base
  • Object
show all
Defined in:
lib/haveapi/go_client/authentication/basic.rb

Instance Method Summary collapse

Instance Method Details

#generate(gen) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/haveapi/go_client/authentication/basic.rb', line 7

def generate(gen)
  ErbTemplate.render_to_if_changed(
    'authentication/basic.go',
    {
      package: gen.package
    },
    File.join(gen.dst, 'auth_basic.go')
  )
end