Class: GitWebHookModel::Parse
- Inherits:
-
Object
- Object
- GitWebHookModel::Parse
- Defined in:
- lib/git_web_hook_model/parse.rb
Instance Method Summary collapse
- #as_hash ⇒ Object
-
#initialize(response) ⇒ Parse
constructor
A new instance of Parse.
Constructor Details
#initialize(response) ⇒ Parse
Returns a new instance of Parse.
5 6 7 |
# File 'lib/git_web_hook_model/parse.rb', line 5 def initialize(response) @response = response end |
Instance Method Details
#as_hash ⇒ Object
9 10 11 |
# File 'lib/git_web_hook_model/parse.rb', line 9 def as_hash hash? ? @response : parsed_response end |