Class: GitWebHookModel

Inherits:
Object
  • Object
show all
Defined in:
lib/git_web_hook_model.rb,
lib/git_web_hook_model/parse.rb,
lib/git_web_hook_model/version.rb,
lib/git_web_hook_model/hook/model.rb,
lib/git_web_hook_model/hook/owner.rb,
lib/git_web_hook_model/hook/commit.rb,
lib/git_web_hook_model/hook/repository.rb

Defined Under Namespace

Modules: Hook Classes: Parse

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.for(response) ⇒ Object



11
12
13
# File 'lib/git_web_hook_model.rb', line 11

def self.for(response)
  Hook::Model.new(Parse.new(response).as_hash)
end