Class: GitWebHookModel::Parse

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

Instance Method Summary collapse

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_hashObject



9
10
11
# File 'lib/git_web_hook_model/parse.rb', line 9

def as_hash
  hash? ? @response : parsed_response
end