Class: LinuxHub::Github

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/linux-hub/github.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_token=(value) ⇒ Object (writeonly)

Sets the attribute access_token

Parameters:

  • value

    the value to set the attribute access_token to.



7
8
9
# File 'lib/linux-hub/github.rb', line 7

def access_token=(value)
  @access_token = value
end

Instance Method Details

#clientObject



9
10
11
# File 'lib/linux-hub/github.rb', line 9

def client
  @client ||= Octokit::Client.new(access_token: @access_token)
end