Class: Txgh::Handlers::Github::Handler
- Inherits:
-
Object
- Object
- Txgh::Handlers::Github::Handler
- Includes:
- ResponseHelpers
- Defined in:
- lib/txgh/handlers/github/handler.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize(options = {}) ⇒ Handler
Returns a new instance of Handler.
11 12 13 14 15 16 |
# File 'lib/txgh/handlers/github/handler.rb', line 11 def initialize( = {}) @project = .fetch(:project) @repo = .fetch(:repo) @payload = .fetch(:payload) @logger = .fetch(:logger) { Logger.new(STDOUT) } end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
9 10 11 |
# File 'lib/txgh/handlers/github/handler.rb', line 9 def logger @logger end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
9 10 11 |
# File 'lib/txgh/handlers/github/handler.rb', line 9 def payload @payload end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
9 10 11 |
# File 'lib/txgh/handlers/github/handler.rb', line 9 def project @project end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
9 10 11 |
# File 'lib/txgh/handlers/github/handler.rb', line 9 def repo @repo end |