Class: RepoFile

Inherits:
Object show all
Includes:
FromHash
Defined in:
lib/transparent_git/repo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



78
79
80
# File 'lib/transparent_git/repo.rb', line 78

def body
  @body
end

#fileObject

Returns the value of attribute file.



78
79
80
# File 'lib/transparent_git/repo.rb', line 78

def file
  @file
end

Instance Method Details

#to_jsonObject



79
80
81
# File 'lib/transparent_git/repo.rb', line 79

def to_json
  {:file => file, :body => body}
end