Class: GithubApi

Inherits:
Object
  • Object
show all
Defined in:
lib/github.rb

Constant Summary collapse

ORG =
'YTech'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGithubApi

Returns a new instance of GithubApi.



7
8
9
10
11
12
# File 'lib/github.rb', line 7

def initialize
  @api = Github.new(
    basic_auth: "#{ENV['GITHUB_API_USER']}:#{ENV['GITHUB_API_PASS']}",
    org: ORG
  )
end

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



2
3
4
# File 'lib/github.rb', line 2

def api
  @api
end