Class: GithubTV
- Inherits:
-
Object
- Object
- GithubTV
- Defined in:
- lib/github-tv.rb
Defined Under Namespace
Classes: Sync
Instance Attribute Summary collapse
-
#org ⇒ Object
readonly
Returns the value of attribute org.
-
#repos ⇒ Object
readonly
Returns the value of attribute repos.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(config) ⇒ GithubTV
constructor
A new instance of GithubTV.
- #run ⇒ Object
Constructor Details
#initialize(config) ⇒ GithubTV
Returns a new instance of GithubTV.
7 8 9 10 11 |
# File 'lib/github-tv.rb', line 7 def initialize(config) @token = config.fetch 'token' @repos = config.fetch 'repos' @org = config.fetch 'organization' end |
Instance Attribute Details
#org ⇒ Object (readonly)
Returns the value of attribute org.
5 6 7 |
# File 'lib/github-tv.rb', line 5 def org @org end |
#repos ⇒ Object (readonly)
Returns the value of attribute repos.
5 6 7 |
# File 'lib/github-tv.rb', line 5 def repos @repos end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/github-tv.rb', line 5 def token @token end |