class IndexableCommit

Overview

helper class to be able to index a commit as JSON document

Defined in:

git-log-to-elasticsearch.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(commit : Git::Commit, branch : String, repo : String) #

[View source]

Instance Method Detail

def _id : String #

[View source]
def branches : Array(String) #

[View source]
def branches=(branches : Array(String)) #

[View source]
def files_added : Array(String) #

[View source]
def files_added=(files_added : Array(String)) #

[View source]
def files_deleted : Array(String) #

[View source]
def files_deleted=(files_deleted : Array(String)) #

[View source]
def files_modified : Array(String) #

[View source]
def files_modified=(files_modified : Array(String)) #

[View source]
def to_json(json : JSON::Builder) #

[View source]